[Mesa-dev] [PATCH] i915: Fix wrong sizeof argument in i915_update_tex_unit.

2012-11-20 Thread Vinson Lee
The bug was found by Coverity. Signed-off-by: Vinson Lee --- src/mesa/drivers/dri/i915/i915_texstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i915/i915_texstate.c b/src/mesa/drivers/dri/i915/i915_texstate.c index 4bd5e72..94a8e55 100644 --- a/sr

Re: [Mesa-dev] [PATCH] (gles3) mesa: Support more glGet enums for ES3

2012-11-20 Thread Kenneth Graunke
On 11/20/2012 05:13 PM, Chad Versace wrote: For glGetIntegerv, add support for the following in an OpenGL ES 3.0 context: GL_MAJOR_VERSION GL_MINOR_VERSION GL_NUM_EXTENSIONS See Table 6.29 of the OpenGL ES 3.0 spec. Fixes error GL_INVALID_ENUM in piglit egl-create-context-verify-

Re: [Mesa-dev] [PATCH gles3] i965: Fix maximum supported OpenGL ES2 context version

2012-11-20 Thread Kenneth Graunke
On 11/20/2012 03:31 PM, Chad Versace wrote: brwCreateContext unconditionally set the maximum supported OpenGL ES2 context version to 3.0. Instead, we need to predicate it on hardware capabilities. Set it to 3.0 only if and only if OpenGL 3.0 is supported. Signed-off-by: Chad Versace --- src/m

[Mesa-dev] [PATCH 12/12] i965/fs: Move struct brw_compile (p) entirely inside fs_generator.

2012-11-20 Thread Kenneth Graunke
The brw_compile structure contains the brw_instruction store and the brw_eu_emit.c state tracking fields. These are only useful for the final assembly generation pass; the earlier compilation stages doesn't need them. This also means that the code generator for future hardware won't have access t

[Mesa-dev] [PATCH 11/12] i965/fs: Split final assembly code generation out of fs_visitor.

2012-11-20 Thread Kenneth Graunke
Compiling shaders requires several main steps: 1. Generating FS IR from either GLSL IR or Mesa IR 2. Optimizing the IR 3. Register allocation 4. Generating assembly code This patch splits out step 4 into a separate class named "fs_generator." There are several reasons for doing so:

[Mesa-dev] [PATCH 10/12] i965/fs: Assert on unsupported opcodes rather than failing.

2012-11-20 Thread Kenneth Graunke
Final code generation should never fail. This is a bug, and there should be no user-triggerable cases where this could occur. Also, we're not going to have a fail() method in a moment. --- src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 08/12] i965/fs: Move uses of brw_compile from do_wm_prog to brw_wm_fs_emit.

2012-11-20 Thread Kenneth Graunke
The brw_compile structure is closely tied to the Gen4-7 hardware encoding. However, do_wm_prog is very generic: it just calls out to get a compiled program and then uploads it. This isn't ultimately where we want it, but it's a step in the right direction: it's now closer to the code generator. -

[Mesa-dev] [PATCH 07/12] i965/fs: Pass the brw_context pointer into fs_visitor explicitly.

2012-11-20 Thread Kenneth Graunke
We used to steal it out of the brw_compile struct...but fs_visitor isn't going to have one of those in the future. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++-- src/mesa/drivers/dri/i965/brw_fs.h | 3 ++- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 +++-- 3 files change

[Mesa-dev] [PATCH 09/12] i965: Make it possible to create a cfg_t without a backend_visitor.

2012-11-20 Thread Kenneth Graunke
All we really need is a memory context and the instruction list; passing a backend_visitor is just convenient at times. This will be necessary two patches from now. --- src/mesa/drivers/dri/i965/brw_cfg.cpp | 17 ++--- src/mesa/drivers/dri/i965/brw_cfg.h | 4 2 files changed,

[Mesa-dev] [PATCH 05/12] i965/fs: Remove struct brw_shader * parameter to fs_visitor constructor.

2012-11-20 Thread Kenneth Graunke
We can easily recover it from prog, and this makes it clear that we aren't passing additional information in. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++-- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 +++-- 3 files changed, 6 i

[Mesa-dev] [PATCH 06/12] i965/fs: Move brw_wm_compile::fp to fs_visitor.

2012-11-20 Thread Kenneth Graunke
Also change it from a brw_fragment_program to a gl_fragment_program, since that seems to be what everything wants anyway. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 9 + src/mesa/drivers/dri/i965/brw_fs.h | 4 +++- src/mesa/drivers/dri/i965/brw_fs_emit.cpp| 2 +- src/

[Mesa-dev] [PATCH 04/12] i965/fs: Move brw_wm_compile::dispatch_width into fs_visitor.

2012-11-20 Thread Kenneth Graunke
Also, rather than having brw_wm_fs_emit poke at it directly, make it a parameter to the fs_visitor constructor. All other changes generated by search and replace (with occasional whitespace fixup). --- src/mesa/drivers/dri/i965/brw_fs.cpp | 39 ++ src/mesa/driver

[Mesa-dev] [PATCH 03/12] i965/fs: Move brw_wm_lookup_iz() to fs_visitor::setup_payload_gen4().

2012-11-20 Thread Kenneth Graunke
This necessitates compiling brw_wm_iz.c as C++. --- src/mesa/drivers/dri/i965/Makefile.sources | 2 +- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_wm.h | 3 - src/mesa/drivers/dri/i965/brw_wm_iz.

[Mesa-dev] [PATCH 02/12] i965/fs: Move brw_wm_payload_setup() to fs_visitor::setup_payload_gen6()

2012-11-20 Thread Kenneth Graunke
Now that we only have the one backend, there's no real point in keeping this separate. Moving it should allow some future simplifications. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 63 +- src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_w

[Mesa-dev] i965: Splitting out FS codegen ***re-autogen required***

2012-11-20 Thread Kenneth Graunke
Hey all, Here's a bunch of preliminary refactoring which should help me implement the Gen8 code generator. A bit of background: Gen8 uses a different instruction encoding than Gen4-7 (essentially, a lot of bits got moved around), which means that I can't use struct brw_instruction. This basicall

[Mesa-dev] [PATCH 01/12] i965/fs: Remove brw_wm_compile::computes_depth field.

2012-11-20 Thread Kenneth Graunke
Everybody determines this by checking if fp's OutputsWritten field contains the FRAG_RESULT_DEPTH bit. Rather than having payload setup check this and set the computes_depth flag, we can just do the check in the only place that actually used it: emit_fb_writes(). --- src/mesa/drivers/dri/i965/brw

Re: [Mesa-dev] [PATCH 3/3] (gles3) egl/dri2: Add plumbing for EGL_OPENGL_ES3_BIT_KHR

2012-11-20 Thread Chad Versace
>> @@ -737,8 +742,10 @@ dri2_create_context(_EGLDriver *drv, _EGLDisplay *disp, >> _EGLConfig *conf, >> api = __DRI_API_GLES; >> break; >>case 2: >> + api = __DRI_API_GLES3; >> + break; >>case 3: >> - api = __DRI_API_GLES2; >> + a

Re: [Mesa-dev] [PATCH 2/3] (gles3) intel: Expose support for DRI_API_GLES3

2012-11-20 Thread Chad Versace
On 11/20/2012 05:45 PM, Ian Romanick wrote: > On 11/20/2012 05:31 PM, Chad Versace wrote: >> Set the GLES3 bit in intel_screen's bitmask of supported DRI API's. >> Neither the EGL nor GLX layer uses the bit yet. >> >> Signed-off-by: Chad Versace >> --- >> src/mesa/drivers/dri/intel/intel_screen.

Re: [Mesa-dev] [PATCH 2/3] (gles3) intel: Expose support for DRI_API_GLES3

2012-11-20 Thread Ian Romanick
On 11/20/2012 05:31 PM, Chad Versace wrote: Set the GLES3 bit in intel_screen's bitmask of supported DRI API's. Neither the EGL nor GLX layer uses the bit yet. Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/me

Re: [Mesa-dev] [PATCH 3/3] (gles3) egl/dri2: Add plumbing for EGL_OPENGL_ES3_BIT_KHR

2012-11-20 Thread Matt Turner
On Tue, Nov 20, 2012 at 5:31 PM, Chad Versace wrote: > Fixes error EGL_BAD_ATTRIBUTE in the tests below on Intel Sandybridge: > * piglit egl-create-context-verify-gl-flavor, testcase OpenGL ES 3.0 > * gles3conform, revision 19700 > > This plumbing is added in order to comply with the EGL_K

Re: [Mesa-dev] [PATCH] (gles3) mesa: Support more glGet enums for ES3

2012-11-20 Thread Matt Turner
On Tue, Nov 20, 2012 at 5:13 PM, Chad Versace wrote: > For glGetIntegerv, add support for the following in an OpenGL ES 3.0 > context: > GL_MAJOR_VERSION > GL_MINOR_VERSION > GL_NUM_EXTENSIONS > > See Table 6.29 of the OpenGL ES 3.0 spec. > > Fixes error GL_INVALID_ENUM in piglit egl-c

[Mesa-dev] [PATCH 3/3] (gles3) egl/dri2: Add plumbing for EGL_OPENGL_ES3_BIT_KHR

2012-11-20 Thread Chad Versace
Fixes error EGL_BAD_ATTRIBUTE in the tests below on Intel Sandybridge: * piglit egl-create-context-verify-gl-flavor, testcase OpenGL ES 3.0 * gles3conform, revision 19700 This plumbing is added in order to comply with the EGL_KHR_create_context spec. According to the EGL_KHR_create_context

[Mesa-dev] [PATCH 1/3] (gles3) dri: Define enum __DRI_API_GLES3

2012-11-20 Thread Chad Versace
This enum corresponds to EGL_OPENGL_ES3_BIT_KHR. Neither the GLX nor EGL layer use the enum yet. I don't like the GLES bits. I'd prefer that all GLES APIs be exposed through a single API bit, as is done in GLX_EXT_create_context_es_profile. But, we need this GLES3 enum in order to do the plumbing

[Mesa-dev] [PATCH 2/3] (gles3) intel: Expose support for DRI_API_GLES3

2012-11-20 Thread Chad Versace
Set the GLES3 bit in intel_screen's bitmask of supported DRI API's. Neither the EGL nor GLX layer uses the bit yet. Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/

[Mesa-dev] [PATCH 0/3] (gles3) Add plumbing for EGL_OPENGL_ES3_BIT

2012-11-20 Thread Chad Versace
Fixes error EGL_BAD_ATTRIBUTE in the tests below on Intel Sandybridge: * piglit egl-create-context-verify-gl-flavor, testcase OpenGL ES 3.0 * gles3conform, revision 19700 The series lives on my es3-bit branch. It adds a new enum, __DRI_API_GLES3, and does the needed plumbing in the EGL and DRI

[Mesa-dev] [PATCH] (gles3) mesa: Support more glGet enums for ES3

2012-11-20 Thread Chad Versace
For glGetIntegerv, add support for the following in an OpenGL ES 3.0 context: GL_MAJOR_VERSION GL_MINOR_VERSION GL_NUM_EXTENSIONS See Table 6.29 of the OpenGL ES 3.0 spec. Fixes error GL_INVALID_ENUM in piglit egl-create-context-verify-gl-flavor, testcase for OpenGL ES 3.0. Signed-of

[Mesa-dev] [PATCH] i915: Validate requested GLES context version in i915CreateContext (v2)

2012-11-20 Thread Chad Versace
Commit 243cf7a applied a similar fix to i965. For GLES1 and GLES2, i915CreateContext neglected to validate the requested context version received from the DRI layer. If DRI requested an OpenGL ES2 context with version 3.9, we provided it one. v2: Allow GLES2 only if GL_ARB_fragment_shader is supp

[Mesa-dev] [PATCH gles3] i965: Fix maximum supported OpenGL ES2 context version

2012-11-20 Thread Chad Versace
brwCreateContext unconditionally set the maximum supported OpenGL ES2 context version to 3.0. Instead, we need to predicate it on hardware capabilities. Set it to 3.0 only if and only if OpenGL 3.0 is supported. Signed-off-by: Chad Versace --- src/mesa/drivers/dri/i965/brw_context.c | 2 +- 1 fi

[Mesa-dev] [PATCH] i915: Validate requested GLES context version in i915CreateContext

2012-11-20 Thread Chad Versace
Commit 243cf7a applied a similar fix to i965. For GLES1 and GLES2, i915CreateContext neglected to validate the requested context version received from the DRI layer. If DRI requested an OpenGL ES2 context with version 3.9, we provided it one. Signed-off-by: Chad Versace --- src/mesa/drivers/dri

Re: [Mesa-dev] [PATCH] r600g: Fix flush issue with llvm on r700

2012-11-20 Thread Marek Olšák
It's not really a flush fix, you're just fixing wrong RESOURCE_ID in shaders. The best solution would be not to add 2 in LLVM and not to subtract 2 here. Other than that, it looks good. Marek On Tue, Nov 20, 2012 at 11:26 PM, Vincent Lejeune wrote: > --- > src/gallium/drivers/r600/r600_llvm.c

Re: [Mesa-dev] [PATCH] i965: Fix hangs with FP KIL instructions pre-gen6.

2012-11-20 Thread Ian Romanick
On 11/20/2012 12:46 PM, Eric Anholt wrote: We can't support IF statements in 16-wide on these. To get back to 16-wide for these shaders, we need to support predicate on discard instructions in the backend IR, which is something we've sort of got on the list to do anyway. Bugzilla: https://bugs.

[Mesa-dev] [PATCH] r600g: Fix flush issue with llvm on r700

2012-11-20 Thread Vincent Lejeune
--- src/gallium/drivers/r600/r600_llvm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index b3d4e6b..170dac7 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/gallium/drivers/r600/r600

[Mesa-dev] [Bug 57121] corrupted GLSL built-in function results when using Uniform Buffer contents as arguments

2012-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57121 Tomasz Kaźmierczak changed: What|Removed |Added Status|NEEDINFO|NEW -- You are receiving this mail

[Mesa-dev] [Bug 57121] corrupted GLSL built-in function results when using Uniform Buffer contents as arguments

2012-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57121 --- Comment #6 from Tomasz Kaźmierczak --- Created attachment 70334 --> https://bugs.freedesktop.org/attachment.cgi?id=70334&action=edit apitrace file -- You are receiving this mail because: You are the assignee for the bug. _

[Mesa-dev] [Bug 57121] corrupted GLSL built-in function results when using Uniform Buffer contents as arguments

2012-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57121 --- Comment #5 from Tomasz Kaźmierczak --- Hi, I'll try to create a small test program for that if I find some time, but for now I'm sending an apitrace file. The meshes get loaded in frame 137 and the bug is visible then (they get transformed t

Re: [Mesa-dev] [PATCH] build: fix --without-glut

2012-11-20 Thread Brian Paul
On Tue, Nov 20, 2012 at 3:34 PM, Kenneth Graunke wrote: > On 11/20/2012 08:57 AM, Burton, Ross wrote: >> >> On 14 November 2012 15:38, Dan Nicholson wrote: >>> >>> This looks pretty good except that I think you need to temporarily add >>> GLUT_CFLAGS to CFLAGS and GLUT_LIBS to LIBS so that the us

Re: [Mesa-dev] [PATCH] build: fix --without-glut

2012-11-20 Thread Kenneth Graunke
On 11/20/2012 08:57 AM, Burton, Ross wrote: On 14 November 2012 15:38, Dan Nicholson wrote: This looks pretty good except that I think you need to temporarily add GLUT_CFLAGS to CFLAGS and GLUT_LIBS to LIBS so that the user specified prefix works for AC_CHECK*. On the other hand, at least mesa

Re: [Mesa-dev] [PATCH] r600g: Fix flushing issues with llvm on r700 hw

2012-11-20 Thread Vincent Lejeune
Hi, http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb44c36df842af010269eda1be77c4aea8ebe736 introduces a bug with tgsi-to-llvm on R700 cards. Apparently there is an issue with flushing : a lot of piglit shaders are reported to fail (I got something like 3000 regressions) however running them

Re: [Mesa-dev] [PATCH 2/2] mesa: Rename and wire-up GetInteger64i_v

2012-11-20 Thread Anuj Phogat
On Tue, Nov 20, 2012 at 1:09 PM, Matt Turner wrote: > The function was named badly and wasn't in the dispatch table, > making it hard to find. > > Fixes transform_feedback2_states and gets a few other transform > feedback tests closer to working in es3conform. > --- > src/mapi/glapi/gen/GL3x.xml

Re: [Mesa-dev] [PATCH] mesa: Allow glGet* queries on EXT_texture_lod_bias data in ES 3

2012-11-20 Thread Kenneth Graunke
On 11/20/2012 11:47 AM, Matt Turner wrote: Fixes the remaining 4 texture_lod_bias failures in es3conform. --- src/mesa/main/get.c | 17 + src/mesa/main/get_hash_params.py |8 +--- 2 files changed, 22 insertions(+), 3 deletions(-) Reviewed-by: Kenneth G

Re: [Mesa-dev] [PATCH 1/2] mesa: Correct glGet{Boolean, Integer}i_v names

2012-11-20 Thread Kenneth Graunke
On 11/20/2012 01:09 PM, Matt Turner wrote: --- src/mesa/main/get.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) For both patches: Reviewed-by: Kenneth Graunke ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.

Re: [Mesa-dev] [PATCH] i965: Fix hangs with FP KIL instructions pre-gen6.

2012-11-20 Thread Kenneth Graunke
On 11/20/2012 12:46 PM, Eric Anholt wrote: We can't support IF statements in 16-wide on these. To get back to 16-wide for these shaders, we need to support predicate on discard instructions in the backend IR, which is something we've sort of got on the list to do anyway. Bugzilla: https://bugs.

[Mesa-dev] [PATCH] r600g: Fix flushing issues with llvm on r700 hw

2012-11-20 Thread Vincent Lejeune
--- src/gallium/drivers/r600/r600_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index ab658da..87fe4e7 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r60

Re: [Mesa-dev] [PATCH] mesa: Allow glGet* queries on EXT_texture_lod_bias data in ES 3

2012-11-20 Thread Anuj Phogat
On Tue 20 Nov 2012 11:47:52 AM PST, Matt Turner wrote: > Fixes the remaining 4 texture_lod_bias failures in es3conform. > --- > src/mesa/main/get.c | 17 + > src/mesa/main/get_hash_params.py |8 +--- > 2 files changed, 22 insertions(+), 3 deletions(-) > > dif

[Mesa-dev] [PATCH 2/2] mesa: Rename and wire-up GetInteger64i_v

2012-11-20 Thread Matt Turner
The function was named badly and wasn't in the dispatch table, making it hard to find. Fixes transform_feedback2_states and gets a few other transform feedback tests closer to working in es3conform. --- src/mapi/glapi/gen/GL3x.xml |2 +- src/mesa/main/get.c |

[Mesa-dev] [PATCH 1/2] mesa: Correct glGet{Boolean, Integer}i_v names

2012-11-20 Thread Matt Turner
--- src/mesa/main/get.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index a4dc972..077cf2d 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1696,7 +1696,7 @@ _mesa_GetBooleani_v( GLenum pname, GLuint index, GL

[Mesa-dev] [PATCH] i965: Fix hangs with FP KIL instructions pre-gen6.

2012-11-20 Thread Eric Anholt
We can't support IF statements in 16-wide on these. To get back to 16-wide for these shaders, we need to support predicate on discard instructions in the backend IR, which is something we've sort of got on the list to do anyway. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55828 --- sr

[Mesa-dev] [Bug 56685] [recent build error] glsl_parser.h: No such file or directory

2012-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56685 --- Comment #13 from Thierry Reding --- (In reply to comment #12) > How could glsl_parser.h exist in both src and build directories? There could be any number of reasons. The most likely would be if somebody's built in-tree, so glsl_parser.h get

[Mesa-dev] [PATCH] mesa: Allow glGet* queries on EXT_texture_lod_bias data in ES 3

2012-11-20 Thread Matt Turner
Fixes the remaining 4 texture_lod_bias failures in es3conform. --- src/mesa/main/get.c | 17 + src/mesa/main/get_hash_params.py |8 +--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 43bf3b9..8

Re: [Mesa-dev] [PATCH] build: Fix AX_PROG_{CC, CXX}_FOR_BUILD macros

2012-11-20 Thread Thierry Reding
On Tue, Nov 20, 2012 at 11:07:03AM -0800, Matt Turner wrote: > On Tue, Nov 20, 2012 at 7:50 AM, Thierry Reding > wrote: > > Override the cross_compiling and ac_tool_prefix variables by reassigning > > to them instead of redefining the macros. Redefining them will actually > > cause the variable na

Re: [Mesa-dev] [PATCH 1/2] meta: Use #version 300 es in GenerateMipmap shaders on ES3.

2012-11-20 Thread Matt Turner
On Mon, Nov 19, 2012 at 10:21 PM, Kenneth Graunke wrote: > --- > src/mesa/drivers/common/meta.c | 24 +--- > 1 file changed, 13 insertions(+), 11 deletions(-) > > These should probably go to the gles3 branch, not master. > > This one's not observed to fix any conformance tests

Re: [Mesa-dev] [PATCH] glsl: Support unsigned integer constants in layout qualifiers.

2012-11-20 Thread Matt Turner
On Mon, Nov 19, 2012 at 10:37 PM, Kenneth Graunke wrote: > Fixes es3conform's explicit_attrib_location_integer_constants. > --- > src/glsl/glsl_parser.yy | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy > index 89175f

Re: [Mesa-dev] [PATCH] build: use git ls-files for adding all Makefile.in - files into the release tarball

2012-11-20 Thread Eric Anholt
Andreas Boll writes: > Until we have proper 'make dist' this is an improvement of the current > situation, because each time some old Makefiles got converted to automake > we had to update the tarballs target. These probably make more sense in the manifest.txt rule, since automake's use of EXTRA

Re: [Mesa-dev] [PATCH] build: Fix AX_PROG_{CC, CXX}_FOR_BUILD macros

2012-11-20 Thread Matt Turner
On Tue, Nov 20, 2012 at 7:50 AM, Thierry Reding wrote: > Override the cross_compiling and ac_tool_prefix variables by reassigning > to them instead of redefining the macros. Redefining them will actually > cause the variable names to be replaced instead of their content. > > Furthermore push the d

[Mesa-dev] [Bug 43871] shader with uniform array/record and if clauses is not translated correctly into TGSI IR

2012-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43871 Andreas Boll changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] Proposal: allow hidden security bugs on Mesa's Bugzilla

2012-11-20 Thread Alan Coopersmith
On 11/20/12 09:29 AM, Benoit Jacob wrote: > Both solutions are poor, and a better solution would be for Mesa's > bugzilla to allow hidden security bugs so we could work there. Given > that security bug discussion can't be open, that is the "least bad" > solution possible. For what it's worth, Mesa

[Mesa-dev] dispatch changes on gles3 branch - Re: [PATCH v3 0/7] Delay exec table initialization until version is computed

2012-11-20 Thread Jordan Justen
On Mon, Nov 19, 2012 at 8:14 PM, Kenneth Graunke wrote: > On 11/19/2012 05:01 PM, Jordan Justen wrote: >> >> GLES3 support requires that the version be computed before the >> exec table is initialized. >> >> For main exec table initialization (api_exec.c): >> * Rename _mesa_create_exec_table to _m

[Mesa-dev] [PATCH V2] build: fix --without-glut

2012-11-20 Thread Ross Burton
The argument --without-glut is transformed to --with-glut=no, which the logic wasn't handling at all so --without-glut didn't work. Rewrite the logic to handle the case where the value passed to --with-glut is "no". Signed-off-by: Ross Burton --- configure.ac | 32 +---

Re: [Mesa-dev] [PATCH] build: fix --without-glut

2012-11-20 Thread Burton, Ross
On 14 November 2012 15:38, Dan Nicholson wrote: > This looks pretty good except that I think you need to temporarily add > GLUT_CFLAGS to CFLAGS and GLUT_LIBS to LIBS so that the user specified > prefix works for AC_CHECK*. On the other hand, at least mesa glut has a > pkg-config file, so it might

[Mesa-dev] Proposal: allow hidden security bugs on Mesa's Bugzilla

2012-11-20 Thread Benoit Jacob
List, I was told to send this to freedesktop.org admins, but as I fully expect that this will be controversial among some Mesa developers, I thought that I would write to this list first and check that there is enough agreement here. WebGL-enabled browsers have faced security bugs in all drivers

Re: [Mesa-dev] [PATCH 1/2] i965: Validate requested GLES context version in brwCreateContext

2012-11-20 Thread Ian Romanick
On 11/09/2012 02:06 PM, Chad Versace wrote: For GLES1 and GLES2, brwCreateContext neglected to validate the requested context version received from the DRI layer. If DRI requested an OpenGL ES2 context with version 3.9, we provided it one. Before this fix, the switch statement that validated the

Re: [Mesa-dev] [PATCH] glsl: Support unsigned integer constants in layout qualifiers.

2012-11-20 Thread Ian Romanick
On 11/19/2012 10:37 PM, Kenneth Graunke wrote: Fixes es3conform's explicit_attrib_location_integer_constants. From the look of things, this is how it should work on desktop as well. The grammar says: layout-qualifier-id location = integer-constant and integer-constant :

Re: [Mesa-dev] [PATCH 1/2] meta: Use #version 300 es in GenerateMipmap shaders on ES3.

2012-11-20 Thread Ian Romanick
The series is Reviewed-by: Ian Romanick On 11/19/2012 10:21 PM, Kenneth Graunke wrote: --- src/mesa/drivers/common/meta.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) These should probably go to the gles3 branch, not master. Yes, for now. This one's

[Mesa-dev] [Bug 57241] Gallium drivers should support forward-compatible contexts

2012-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57241 Ian Romanick changed: What|Removed |Added Hardware|Other |All OS|Linux (All)

Re: [Mesa-dev] [PATCH] build: use git ls-files for adding all Makefile.in - files into the release tarball

2012-11-20 Thread Matt Turner
On Tue, Nov 20, 2012 at 4:36 AM, Andreas Boll wrote: > Until we have proper 'make dist' this is an improvement of the current > situation, because each time some old Makefiles got converted to automake > we had to update the tarballs target. > > NOTE: This is a candidate for the 9.0 branch. > > Cc

Re: [Mesa-dev] [PATCH] glsl: Support unsigned integer constants in layout qualifiers.

2012-11-20 Thread Eric Anholt
Kenneth Graunke writes: > Fixes es3conform's explicit_attrib_location_integer_constants. Reviewed-by: Eric Anholt pgpc21sF3cuEL.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mail

[Mesa-dev] [PATCH] build: Fix AX_PROG_{CC,CXX}_FOR_BUILD macros

2012-11-20 Thread Thierry Reding
Override the cross_compiling and ac_tool_prefix variables by reassigning to them instead of redefining the macros. Redefining them will actually cause the variable names to be replaced instead of their content. Furthermore push the definition of CPPFLAGS before running the checks for the build too

[Mesa-dev] [PATCH] build: use git ls-files for adding all Makefile.in - files into the release tarball

2012-11-20 Thread Andreas Boll
Until we have proper 'make dist' this is an improvement of the current situation, because each time some old Makefiles got converted to automake we had to update the tarballs target. NOTE: This is a candidate for the 9.0 branch. Cc: Eric Anholt Cc: Matt Turner --- Makefile.am | 52 +-

Re: [Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

2012-11-20 Thread Johannes Obermayr
Am Dienstag, 20. November 2012, 06:41:22 schrieb Dave Airlie: > > $ llvm-config --cxxflags > > > > -I/usr/include -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 > > -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC > > -fvisibility-inlines-hidden -O2 -g -D_GNU_SOURCE -Wall -