Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: media-libs/mesa/files/7.9-get-maxsamples.patch

Issue 5925002: Switch to Mesa 7.9. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Switch to Mesa 7.9 version 2. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media-libs/mesa/files/7.9-get-maxsamples.patch
diff --git a/media-libs/mesa/files/7.9-get-maxsamples.patch b/media-libs/mesa/files/7.9-get-maxsamples.patch
new file mode 100644
index 0000000000000000000000000000000000000000..df49b459df40bd0eb30e7886c349f15807c69f88
--- /dev/null
+++ b/media-libs/mesa/files/7.9-get-maxsamples.patch
@@ -0,0 +1,40 @@
+From bcef51c3b891dcdb97fd9fce0f2b76f161b59af5 Mon Sep 17 00:00:00 2001
+From: Ian Romanick <ian.d.romanick@intel.com>
+Date: Wed, 10 Nov 2010 00:35:54 +0000
+Subject: mesa: Allow query of MAX_SAMPLES with EXT_framebuffer_multisample
+
+Previously queries of MAX_SAMPLES were only allowed with
+ARB_framebuffer_object, but EXT_framebuffer_multisample also enables
+this query. This seems to only effect the i915. All other drivers
+support both extensions or neither extension.
+
+This patch is based on a patch that Kenneth sent along with the report.
+
+NOTE: this is a candidate for the 7.9 branch.
+
+Reported-by: Kenneth Waters <kwaters@chromium.org>
+---
+diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
+index 870c5d7..b54af6e 100644
+--- a/src/mesa/main/get.c
++++ b/src/mesa/main/get.c
+@@ -297,7 +297,7 @@ EXTRA_EXT(ARB_shader_objects);
+ EXTRA_EXT(EXT_provoking_vertex);
+ EXTRA_EXT(ARB_fragment_shader);
+ EXTRA_EXT(ARB_fragment_program);
+-EXTRA_EXT(ARB_framebuffer_object);
++EXTRA_EXT2(ARB_framebuffer_object, EXT_framebuffer_multisample);
+ EXTRA_EXT(EXT_framebuffer_object);
+ EXTRA_EXT(APPLE_vertex_array_object);
+ EXTRA_EXT(ARB_seamless_cube_map);
+@@ -1142,7 +1142,7 @@ static const struct value_desc values[] = {
+
+ /* GL_ARB_framebuffer_object */
+ { GL_MAX_SAMPLES, CONTEXT_INT(Const.MaxSamples),
+- extra_ARB_framebuffer_object },
++ extra_ARB_framebuffer_object_EXT_framebuffer_multisample },
+
+ /* GL_APPLE_vertex_array_object */
+ { GL_VERTEX_ARRAY_BINDING_APPLE, ARRAY_INT(Name),
+--
+cgit v0.8.3-6-g21f6
« no previous file with comments | « media-libs/mesa/files/7.9-conditional-discards.patch ('k') | media-libs/mesa/files/7.9-glbufferdata-0size.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698