Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Matt Turner
On Mon, May 14, 2012 at 11:13 PM, Oliver McFadden wrote: > On Mon, May 14, 2012 at 11:46:15AM -0700, Ian Romanick wrote: >>      /* Page 37 (page 47 of the PDF) of the OpenGL ES 2.0.25 spec says: >>       * >>       *     "The matrix is specified in column-major order. transpose >>       *     mus

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Oliver McFadden
On Mon, May 14, 2012 at 11:46:15AM -0700, Ian Romanick wrote: > On 05/14/2012 04:56 AM, Oliver McFadden wrote: > > GL_INVALID_VALUE is generated if transpose is not GL_FALSE. > > > > http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml > > > > Signed-off-by: Oliver McFadden > > --- > >

Re: [Mesa-dev] [PATCH v2 5/5] i965/gen6: Initial implementation of MSAA.

2012-05-14 Thread Paul Berry
On 14 May 2012 16:50, Ian Romanick wrote: > On 05/14/2012 02:13 PM, Paul Berry wrote: > >> Just to update the list: I had an in-person meeting with Eric, Ian, and >> Ken today to discuss the design of the patch series and decide what to >> do about it. We agreed to go ahead and push the patches

[Mesa-dev] bugfix series: mesa core, glsl, one i965.

2012-05-14 Thread Eric Anholt
I took a little tour of the Intel oglconform failures, and found some easy fixes. Enjoy. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 8/9] mesa: Fix assertion failure when a cube face is not present.

2012-05-14 Thread Eric Anholt
--- src/mesa/main/texobj.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 365169d..a471bad 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -558,7 +558,8 @@ _mesa_test_texobj_completeness( const stru

[Mesa-dev] [PATCH 6/9] glsl: Fix assertion failure on handling switch on uint expressions.

2012-05-14 Thread Eric Anholt
Fixes piglit glsl-1.30/execution/switch/fs-uint. --- src/glsl/ast_to_hir.cpp |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 4521e86..45ffa16 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -3599,7

[Mesa-dev] [PATCH 9/9] mesa: Check for framebuffer completeness before looking at the rb.

2012-05-14 Thread Eric Anholt
Otherwise, an incomplete framebuffer could have a NULL _ColorReadBuffer and we'd deref that. --- src/mesa/main/readpix.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index 31acfcb..1381110 100644 --- a/src/mesa

[Mesa-dev] [PATCH 7/9] glsl: Drop the extra NULL specifiction on ir_assignment constructors.

2012-05-14 Thread Eric Anholt
It's an implied argument, and I don't think being explicit about it helps. --- src/glsl/ast_to_hir.cpp | 35 ++- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 45ffa16..4a52788 100644 --- a/s

[Mesa-dev] [PATCH 5/9] glsl: Reject non-scalar switch expressions.

2012-05-14 Thread Eric Anholt
The comment quotes spec saying that only scalar integers are allowed, but we only checked for integer. Fixes piglit switch-expression-const-ivec2.vert --- src/glsl/ast_to_hir.cpp |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to

[Mesa-dev] [PATCH 1/9] mesa: Throw error on glGetActiveUniform inside Begin/End.

2012-05-14 Thread Eric Anholt
Fixes piglit GL_ARB_shader_objeccts/getactiveuniform-beginend. --- src/mesa/main/uniform_query.cpp |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 08d330a..f5d998f 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/sr

[Mesa-dev] [PATCH 3/9] glsl: Fix indentation of switch code.

2012-05-14 Thread Eric Anholt
I managed to completely trash it in 22d81f15. --- src/glsl/ast_to_hir.cpp | 545 +++ 1 file changed, 263 insertions(+), 282 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 86bb874..01b1025 100644 --- a/src/glsl/ast_to_

[Mesa-dev] [PATCH 2/9] i965/vs: Fix up swizzle for dereference_array of matrices.

2012-05-14 Thread Eric Anholt
Fixes assertion failure in piglit: vs-mat2-struct-assignment.shader_test vs-mat2-array-assignment.shader_test --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/dri

[Mesa-dev] [PATCH 4/9] glsl: Let the constructor figure out the types of switch-related expressions.

2012-05-14 Thread Eric Anholt
I noticed this while unindenting the code. --- src/glsl/ast_to_hir.cpp |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 01b1025..bc32abb 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -3731,7 +

Re: [Mesa-dev] [PATCH v2 5/5] i965/gen6: Initial implementation of MSAA.

2012-05-14 Thread Ian Romanick
On 05/14/2012 02:13 PM, Paul Berry wrote: Just to update the list: I had an in-person meeting with Eric, Ian, and Ken today to discuss the design of the patch series and decide what to do about it. We agreed to go ahead and push the patches to master as is, and to make further improvements as ti

Re: [Mesa-dev] [PATCH v2 0/6] move software primitive restart into VBO module

2012-05-14 Thread Ian Romanick
On 05/13/2012 07:00 AM, Jordan Justen wrote: v2: * change non-gallium drivers to not enable NV_primitive_restart by default. (this matches the current mesa behavior.) * gallium drivers will continue to use software primitivie restart where needed and will always declare the NV_primiti

Re: [Mesa-dev] [PATCH v2 1/6] vbo: add software primitive restart support

2012-05-14 Thread Ian Romanick
On 05/13/2012 07:00 AM, Jordan Justen wrote: vbo_sw_primitive_restart implements primitive restart in software by splitting primitive draws apart. This is based on similar support in mesa/state_tracker/st_draw.c. Signed-off-by: Jordan Justen --- src/mesa/SConscript |1 +

Re: [Mesa-dev] [PATCH 4/4] i965: use cut index to handle primitive restart when possible

2012-05-14 Thread Ian Romanick
On 05/13/2012 07:06 AM, Jordan Justen wrote: If the primitive restart index and the primitive type can be handled by the cut index feature, then use the hardware to handle the primitive restart feature. The VBO module's software handling of primitive restart is used as a fall back. Signed-off-b

Re: [Mesa-dev] [PATCH 2/4] i965: create code path to handle primitive restart in hardware

2012-05-14 Thread Ian Romanick
On 05/13/2012 07:06 AM, Jordan Justen wrote: For newer hardware we disable the VBO module's software handling of primitive restart. We now handle primitive restarts in brw_handle_primitive_restart. The initial version of brw_handle_primitive_restart simply calls vbo_sw_primitive_restart, and the

[Mesa-dev] [PATCH] i965/blorp: Implement destination clipping and scissoring

2012-05-14 Thread Paul Berry
This patch implements clipping and scissoring of the destination rect for blits that use the blorp engine (e.g. MSAA blits). --- src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 72 -- 1 files changed, 67 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH] svga: fix FBO / viewport bugs

2012-05-14 Thread Brian Paul
When drawing to a FBO, the viewport wasn't always set correctly. It was fine in the usual case of the viewport dims matching the surface dims but broken otherwise. I'll post a new piglit test which exercises this. --- src/gallium/drivers/svga/svga_state_framebuffer.c | 31 -

Re: [Mesa-dev] [PATCH 2/2] i965/fs: Add a local common subexpression elimination pass.

2012-05-14 Thread Eric Anholt
On Thu, 10 May 2012 16:10:15 -0700, Kenneth Graunke wrote: > Total instructions: 18210 -> 17836 > 49/163 programs affected (30.1%) > 12888 -> 12514 instructions in affected programs (2.9% reduction) > > This reduces Lightsmark's "Scale down filter" shader from 395 > instructions to 283, a whoppi

Re: [Mesa-dev] [PATCH v2 5/5] i965/gen6: Initial implementation of MSAA.

2012-05-14 Thread Paul Berry
Just to update the list: I had an in-person meeting with Eric, Ian, and Ken today to discuss the design of the patch series and decide what to do about it. We agreed to go ahead and push the patches to master as is, and to make further improvements as time goes on. Specific improvements that were

Re: [Mesa-dev] Spec interpretation question: glBlitFramebuffer behavior when src rectangle out of range

2012-05-14 Thread Paul Berry
On 14 May 2012 11:06, Ian Romanick wrote: > On 05/14/2012 07:30 AM, Paul Berry wrote: > >> I'm trying to figure out how glBlitFramebuffer() is supposed to behave >> when the source rectangle exceeds the bounds of the read framebuffer. >> For example, if the read framebuffer has width 4 and height

Re: [Mesa-dev] [PATCH] Add .gitignore files for recently-added gallium projects

2012-05-14 Thread Francisco Jerez
Paul Berry writes: > This patch adds .gitignore files to ignore the makefiles generated by > the gallium pipe loader and the clover OpenCL state tracker. Reviewed-by: Francisco Jerez > --- > src/gallium/auxiliary/pipe-loader/.gitignore |1 + > src/gallium/state_trackers/clover/.gitignore |

Re: [Mesa-dev] [PATCH 10/11] clover: Add function for building a clover::module for non-TGSI targets

2012-05-14 Thread Francisco Jerez
Tom Stellard writes: > On Mon, May 14, 2012 at 05:19:10PM +0200, Francisco Jerez wrote: >> Tom Stellard writes: >> >> > On Sun, May 13, 2012 at 04:10:50PM +0200, Francisco Jerez wrote: >> >> Tom Stellard writes: >> >>[...] >> >> > I guess this might be able to work, but I'm not really sure why

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Ian Romanick
On 05/14/2012 04:56 AM, Oliver McFadden wrote: GL_INVALID_VALUE is generated if transpose is not GL_FALSE. http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml Signed-off-by: Oliver McFadden --- src/mesa/main/uniform_query.cpp | 10 ++ 1 files changed, 10 insertions(+),

Re: [Mesa-dev] Spec interpretation question: glBlitFramebuffer behavior when src rectangle out of range

2012-05-14 Thread Ian Romanick
On 05/14/2012 07:30 AM, Paul Berry wrote: I'm trying to figure out how glBlitFramebuffer() is supposed to behave when the source rectangle exceeds the bounds of the read framebuffer. For example, if the read framebuffer has width 4 and height 1, and the draw framebuffer has width 100 and height 1

Re: [Mesa-dev] [PATCH 10/11] clover: Add function for building a clover::module for non-TGSI targets

2012-05-14 Thread Tom Stellard
On Mon, May 14, 2012 at 05:19:10PM +0200, Francisco Jerez wrote: > Tom Stellard writes: > > > On Sun, May 13, 2012 at 04:10:50PM +0200, Francisco Jerez wrote: > >> Tom Stellard writes: > >> > >> > On Sun, May 13, 2012 at 12:40:43AM +0200, Francisco Jerez wrote: > >> >>[...] > >> >> I can think

Re: [Mesa-dev] [PATCH 1/2] i965/fs: Use a const reference in fs_reg::equals instead of a pointer.

2012-05-14 Thread Eric Anholt
On Fri, 11 May 2012 14:25:45 -0700, Ian Romanick wrote: > On 05/10/2012 04:10 PM, Kenneth Graunke wrote: > > This lets you omit some ampersands and is more idiomatic C++. Using > > const also marks the function as not altering either register (which > > was obvious, but nice to enforce). > > I'm

Re: [Mesa-dev] [PATCH] mesa: initialize renderbuffer fields even if AllocStorage fails

2012-05-14 Thread Brian Paul
On 05/14/2012 10:59 AM, Brian Paul wrote: On 05/14/2012 10:44 AM, Marek Olšák wrote: On Mon, May 14, 2012 at 4:40 PM, Brian Paul wrote: On 05/12/2012 10:11 AM, Marek Olšák wrote: It may fail with an unsupported format, but that's not an allowed case where RenderbufferStorage may fail. I've

Re: [Mesa-dev] [PATCH] mesa: initialize renderbuffer fields even if AllocStorage fails

2012-05-14 Thread Brian Paul
On 05/14/2012 10:44 AM, Marek Olšák wrote: On Mon, May 14, 2012 at 4:40 PM, Brian Paul wrote: On 05/12/2012 10:11 AM, Marek Olšák wrote: It may fail with an unsupported format, but that's not an allowed case where RenderbufferStorage may fail. I've read your comment several times but I sti

Re: [Mesa-dev] [PATCH] mesa: initialize renderbuffer fields even if AllocStorage fails

2012-05-14 Thread Marek Olšák
On Mon, May 14, 2012 at 4:40 PM, Brian Paul wrote: > On 05/12/2012 10:11 AM, Marek Olšák wrote: >> >> It may fail with an unsupported format, but that's not an allowed case >> where >> RenderbufferStorage may fail. > > > I've read your comment several times but I still can't quite understand the >

[Mesa-dev] [PATCH] Add .gitignore files for recently-added gallium projects

2012-05-14 Thread Paul Berry
This patch adds .gitignore files to ignore the makefiles generated by the gallium pipe loader and the clover OpenCL state tracker. --- src/gallium/auxiliary/pipe-loader/.gitignore |1 + src/gallium/state_trackers/clover/.gitignore |1 + src/gallium/targets/opencl/.gitignore|1 +

[Mesa-dev] [RFC PATCH 1/1] i965: avoid possible 'SIGFPE, Arithmetic exception.' during error path.

2012-05-14 Thread Oliver McFadden
Mesa: User error: GL_INVALID_OPERATION in glUniformMatrix(non-matrix uniform) Program received signal SIGFPE, Arithmetic exception. 0x in brw_prepare_vertices (brw=0x...) at brw_draw_upload.c:571 571 delta = d / brw->vb.current_buffers[i].stride; Occurs when g

Re: [Mesa-dev] [PATCH 10/11] clover: Add function for building a clover::module for non-TGSI targets

2012-05-14 Thread Francisco Jerez
Tom Stellard writes: > On Sun, May 13, 2012 at 04:10:50PM +0200, Francisco Jerez wrote: >> Tom Stellard writes: >> >> > On Sun, May 13, 2012 at 12:40:43AM +0200, Francisco Jerez wrote: >> >>[...] >> >> I can think of two different ways this could work (your solution would >> >> be somewhere in

[Mesa-dev] [Bug 40920] [openvg] defective pixels using mesa with openvg

2012-05-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40920 José Fonseca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 49915] Account request

2012-05-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49915 Brian Paul changed: What|Removed |Added AssignedTo|mesa-dev@lists.freedesktop. |sitewranglers@lists.freedes

Re: [Mesa-dev] [PATCH] mesa: initialize renderbuffer fields even if AllocStorage fails

2012-05-14 Thread Brian Paul
On 05/12/2012 10:11 AM, Marek Olšák wrote: It may fail with an unsupported format, but that's not an allowed case where RenderbufferStorage may fail. I've read your comment several times but I still can't quite understand the whole issue. The intention was that AllocStorage() should never fa

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Oliver McFadden
On Mon, May 14, 2012 at 08:01:07AM -0600, Brian Paul wrote: > On 05/14/2012 07:56 AM, Oliver McFadden wrote: > > On Mon, May 14, 2012 at 07:50:34AM -0600, Brian Paul wrote: > > >> IMO, for trivial fixes like that you don't need to post v2 patches. > >> Just commit with fixes. > > > > Oh, at the mo

[Mesa-dev] Spec interpretation question: glBlitFramebuffer behavior when src rectangle out of range

2012-05-14 Thread Paul Berry
I'm trying to figure out how glBlitFramebuffer() is supposed to behave when the source rectangle exceeds the bounds of the read framebuffer. For example, if the read framebuffer has width 4 and height 1, and the draw framebuffer has width 100 and height 100, what should be the result of these two

[Mesa-dev] [Bug 49915] Account request

2012-05-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49915 --- Comment #2 from Oliver McFadden 2012-05-14 07:30:47 PDT --- Created attachment 61626 --> https://bugs.freedesktop.org/attachment.cgi?id=61626 GPG public key -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email -

[Mesa-dev] [Bug 49915] Account request

2012-05-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49915 --- Comment #1 from Oliver McFadden 2012-05-14 07:29:47 PDT --- Created attachment 61625 --> https://bugs.freedesktop.org/attachment.cgi?id=61625 SSH public key -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email -

[Mesa-dev] [Bug 49915] New: Account request

2012-05-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49915 Bug #: 49915 Summary: Account request Classification: Unclassified Product: Mesa Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: n

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Brian Paul
On 05/14/2012 07:56 AM, Oliver McFadden wrote: On Mon, May 14, 2012 at 07:50:34AM -0600, Brian Paul wrote: IMO, for trivial fixes like that you don't need to post v2 patches. Just commit with fixes. Oh, at the moment I'm still sorting out my fd.o Intel account, need to request commit access

Re: [Mesa-dev] [PATCH v2 3/6] vbo: use software primitive restart in the VBO module

2012-05-14 Thread Brian Paul
On 05/13/2012 08:00 AM, Jordan Justen wrote: When PrimitiveRestartInSoftware is set, the VBO module will handle primitive restart scenarios before calling the vbo->draw_prims drawing function. Signed-off-by: Jordan Justen --- src/mesa/vbo/vbo_exec_array.c | 35 +--

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Oliver McFadden
On Mon, May 14, 2012 at 07:50:34AM -0600, Brian Paul wrote: > On 05/14/2012 07:45 AM, Oliver McFadden wrote: > > On Mon, May 14, 2012 at 07:26:10AM -0600, Brian Paul wrote: > >> On 05/14/2012 05:56 AM, Oliver McFadden wrote: > >>> GL_INVALID_VALUE is generated if transpose is not GL_FALSE. > >>> >

Re: [Mesa-dev] [PATCH v2 1/6] vbo: add software primitive restart support

2012-05-14 Thread Brian Paul
On 05/13/2012 08:00 AM, Jordan Justen wrote: vbo_sw_primitive_restart implements primitive restart in software by splitting primitive draws apart. This is based on similar support in mesa/state_tracker/st_draw.c. Signed-off-by: Jordan Justen --- src/mesa/SConscript |1 +

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Brian Paul
On 05/14/2012 07:45 AM, Oliver McFadden wrote: On Mon, May 14, 2012 at 07:26:10AM -0600, Brian Paul wrote: On 05/14/2012 05:56 AM, Oliver McFadden wrote: GL_INVALID_VALUE is generated if transpose is not GL_FALSE. http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml Signed-off-by:

[Mesa-dev] [PATCH v2 2/2] mesa: print the Git SHA1 in GL_VERSION for ES1 and ES2.

2012-05-14 Thread Oliver McFadden
Signed-off-by: Oliver McFadden Reviewed-by: Brian Paul --- src/mesa/main/version.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 607230b..90afecb 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/mai

[Mesa-dev] [PATCH v2 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Oliver McFadden
GL_INVALID_VALUE is generated if transpose is not GL_FALSE. http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml Signed-off-by: Oliver McFadden Reviewed-by: Brian Paul --- src/mesa/main/uniform_query.cpp | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --g

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Oliver McFadden
On Mon, May 14, 2012 at 07:26:10AM -0600, Brian Paul wrote: > On 05/14/2012 05:56 AM, Oliver McFadden wrote: > > GL_INVALID_VALUE is generated if transpose is not GL_FALSE. > > > > http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml > > > > Signed-off-by: Oliver McFadden > > --- > >

Re: [Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Brian Paul
On 05/14/2012 05:56 AM, Oliver McFadden wrote: GL_INVALID_VALUE is generated if transpose is not GL_FALSE. http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml Signed-off-by: Oliver McFadden --- src/mesa/main/uniform_query.cpp | 10 ++ 1 files changed, 10 insertions(+),

Re: [Mesa-dev] [PATCH] vl: Initialize pipe_vertex_buffer.user_buffer fields.

2012-05-14 Thread Marek Olšák
On Mon, May 14, 2012 at 12:14 PM, Christoph Bumiller wrote: > On 14.05.2012 09:25, Jose Fonseca wrote: >> Looks good. Thanks Vinson. >> >> Joe > > Actually, all the user_buffer pointers have a comment "/**< pointer to a > user buffer if buffer == NULL */", so you wouldn't actually have to > initia

Re: [Mesa-dev] [PATCH] vl: Initialize pipe_vertex_buffer.user_buffer fields.

2012-05-14 Thread Jose Fonseca
- Original Message - > On 14.05.2012 09:25, Jose Fonseca wrote: > > Looks good. Thanks Vinson. > > > > Joe > > Actually, all the user_buffer pointers have a comment "/**< pointer > to a > user buffer if buffer == NULL */", so you wouldn't actually have to > initialize them if buffer is gua

[Mesa-dev] [PATCH 2/2] mesa: print the Git SHA1 in GL_VERSION for ES1 and ES2.

2012-05-14 Thread Oliver McFadden
Signed-off-by: Oliver McFadden --- src/mesa/main/version.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 607230b..90afecb 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -259,7 +25

[Mesa-dev] [PATCH 1/2] mesa: GLES specifies restrictions on uniform matrix transpose.

2012-05-14 Thread Oliver McFadden
GL_INVALID_VALUE is generated if transpose is not GL_FALSE. http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform.xml Signed-off-by: Oliver McFadden --- src/mesa/main/uniform_query.cpp | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/unifor

Re: [Mesa-dev] [PATCH] vl: Initialize pipe_vertex_buffer.user_buffer fields.

2012-05-14 Thread Christoph Bumiller
On 14.05.2012 09:25, Jose Fonseca wrote: > Looks good. Thanks Vinson. > > Joe Actually, all the user_buffer pointers have a comment "/**< pointer to a user buffer if buffer == NULL */", so you wouldn't actually have to initialize them if buffer is guaranteed to be non-NULL, and checking for user_b

Re: [Mesa-dev] [PATCH] vl: Initialize pipe_vertex_buffer.user_buffer fields.

2012-05-14 Thread Jose Fonseca
Looks good. Thanks Vinson. Joe - Original Message - > Fix uninitialized scalar variable defects reported by Coverity. > > Signed-off-by: Vinson Lee > --- > src/gallium/auxiliary/vl/vl_vertex_buffers.c |4 > 1 file changed, 4 insertions(+) > > diff --git a/src/gallium/auxiliar