[Mesa-dev] [PATCH] glsl: Initialize ast_jump_statement::opt_return_value.

2013-07-14 Thread Vinson Lee
opt_return_value was not initialized if mode != ast_return. Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee --- src/glsl/glsl_parser_extras.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_e

[Mesa-dev] [Bug 66833] Text rendering problems on Dota 2, all mesa drivers

2013-07-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66833 Vladimir Ysikov changed: What|Removed |Added CC||granti...@gmail.com -- You are receiv

[Mesa-dev] [Bug 44618] Cross-compilation broken by glsl builtin_compiler

2013-07-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44618 --- Comment #27 from Jonathan Liu --- The patch has been submitted to the mesa-dev mailing list already (2013-06-04), just waiting for approval. I have been using the patch for quite some time now and it is working fine. -- You are receiving th

[Mesa-dev] [PATCH V3 0/5] Interpolation fixes for Gen4/5

2013-07-14 Thread Chris Forbes
This series adds support for GLSL 1.30 / EXT_gpu_shader4's 'flat' and 'noperspective' varying interpolation qualifiers on Gen4/5. Based on Olivier Galibert's series from July 2012, with some simplifications (that series contained a number of fixes for other bugs which have been addressed in master

[Mesa-dev] [PATCH V3 1/5] i965 Gen4/5: Compute interpolation status for every varying in one place.

2013-07-14 Thread Chris Forbes
The program keys are updated accordingly, but the values are not used yet. [V1-2]: Signed-off-by: Olivier Galibert V3: Updated for vue_map changes, intel -> brw merge, etc. (Chris Forbes) Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_clip.c| 59 +

[Mesa-dev] [PATCH V3 2/5] i965 Gen4/5: Generalize SF interpolation setup for GLSL1.3

2013-07-14 Thread Chris Forbes
Previously the SF only handled the builtin color varying specially. This patch generalizes that support to cover user-defined varyings, driven by the interpolation mode array set up alongside the VUE map. Based on the following patches from Olivier Galibert: - http://lists.freedesktop.org/archives

[Mesa-dev] [PATCH V3 3/5] i965 Gen4/5: clip: correctly handle flat varyings

2013-07-14 Thread Chris Forbes
Previously we only gave special treatment to the builtin color varyings. This patch adds support for arbitrary flat-shaded varyings, which is required for GLSL 1.30. Based on Olivier Galibert's patch from last year: http://lists.freedesktop.org/archives/mesa-dev/2012-July/024340.html [V1-2]: Sign

[Mesa-dev] [PATCH V3 4/5] i965 Gen4/5: clip: Add support for noperspective varyings

2013-07-14 Thread Chris Forbes
Adds support for interpolating noperspective varyings linearly in screen space when clipping. Based on Olivier Galibert's patch from last year: http://lists.freedesktop.org/archives/mesa-dev/2012-July/024341.html At this point all -fixed and -vertex interpolation tests work. [V1-2]: Signed-off-b

[Mesa-dev] [PATCH V3 5/5] i965 Gen4/5: clip: Don't mangle flat varyings

2013-07-14 Thread Chris Forbes
This patch ensures that integers will pass through unscathed. Doing (useless) computations on them is risky, especially when their bit patterns correspond to values like inf or nan. [V1-2]: Signed-off-by: Olivier Galibert Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_clip_util.

[Mesa-dev] [PATCH] i965: allow 8 user clip planes on CTG+

2013-07-14 Thread Chris Forbes
There's no reason to restrict to 6 planes on CTG and ILK -- no bugs to work around which require the top clip flag. This is another tiny step toward GLSL 1.30 support. Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_clip_tri.c | 4 ++-- src/mesa/drivers/dri/i965/brw_context.c | 2

[Mesa-dev] [Bug 66558] RS690: 3D artifacts when playing SuperTuxKart

2013-07-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66558 Alex Deucher changed: What|Removed |Added CC||mar...@gmail.com --- Comment #6 from Alex

[Mesa-dev] [PATCH] glsl: Fix lower_named_interface_blocks to account for dereferences of consts.

2013-07-14 Thread Paul Berry
In certain rare cases (such as those involving dereference of a literal constant array of structs), flatten_named_interface_blocks_declarations's rvalue visitor may be invoked on an ir_dereference_record whose variable_referenced() method returns NULL. Check for this case to avoid a segfault. Pre

Re: [Mesa-dev] [PATCH] i965/Gen4: Zero extra coordinates for ir_tex

2013-07-14 Thread Kenneth Graunke
On 07/13/2013 11:37 PM, Chris Forbes wrote: We always emit U,V,R coordinates for this message, but the sampler gets very angry if pass garbage in the R coordinate for at least some texture formats. Fill the remaining coordinates with zero instead. Fixes broken rendering on GM45 in Source games.

Re: [Mesa-dev] [PATCH] i965: allow 8 user clip planes on CTG+

2013-07-14 Thread Kenneth Graunke
On 07/14/2013 02:43 AM, Chris Forbes wrote: There's no reason to restrict to 6 planes on CTG and ILK -- no bugs to work around which require the top clip flag. Right, there's no negative RHW bug to work around using a slot...so I agree this should be doable. And also necessary for 1.30. I'm

Re: [Mesa-dev] [PATCH] glsl: Fix lower_named_interface_blocks to account for dereferences of consts.

2013-07-14 Thread Kenneth Graunke
On 07/14/2013 09:27 AM, Paul Berry wrote: In certain rare cases (such as those involving dereference of a literal constant array of structs), flatten_named_interface_blocks_declarations's rvalue visitor may be invoked on an ir_dereference_record whose variable_referenced() method returns NULL. C

Re: [Mesa-dev] [PATCH] i965: allow 8 user clip planes on CTG+

2013-07-14 Thread Chris Forbes
Hmmn, that #define does need to change -- the worst-case does get slightly worse. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] glsl: Fix lower_named_interface_blocks to account for dereferences of consts.

2013-07-14 Thread Jordan Justen
Reviewed-by: Jordan Justen On Sun, Jul 14, 2013 at 9:27 AM, Paul Berry wrote: > In certain rare cases (such as those involving dereference of a > literal constant array of structs), > flatten_named_interface_blocks_declarations's rvalue visitor may be > invoked on an ir_dereference_record whose

[Mesa-dev] [Bug 66558] RS690: 3D artifacts when playing SuperTuxKart

2013-07-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66558 --- Comment #7 from Marek Olšák --- The function splits the drawing into several packets if there are too many indices. 256 dwords is a reasonable minimum for the first packet. I think the problem arises when the splitting takes place in the midd

Re: [Mesa-dev] OSMesa Help

2013-07-14 Thread Andy Li
Hi, I have some questions on the OSMesa code.As you suggested, I have continue looking into the swrast code.However, I have trouble figuring out how the code works exactly.Now I am now only focusing on the functions which draw lines.As I look into s_lines.c, I saw the _swrast_choose_line().And d

[Mesa-dev] [RFC] [PATCH 0/3] Introduce a new EGL/DRI extension for resource sharing with Open CL.

2013-07-14 Thread Zhigang Gong
Hi Kristian, The OpenCL spec has one extension to support interoperation between OpenGL and OpenCL. The key requirement for this extension is to export an OpenGL resource (texture/buffer object/render buffer)'s internal attributes to the OpenCL's driver side. IMHO, to support that cl extension

[Mesa-dev] [RFC] [PATCH 1/3] EGL: introduce a new extension to share resource with external library.

2013-07-14 Thread Zhigang Gong
OpenCL has some extension can create CL memory object from GL textures/buffer objects/render buffers. The existing extension can't satisfied this requirement. As we need to pass the resource handler directly to the dri driver layer and get some low level information back which may include the low l

[Mesa-dev] [RFC] [PATCH 2/3] DRI: implement helper functions for dri resource sharing extension.

2013-07-14 Thread Zhigang Gong
Signed-off-by: Zhigang Gong --- src/mesa/drivers/dri/common/dri_util.c | 48 src/mesa/drivers/dri/common/dri_util.h | 10 +++ 2 files changed, 58 insertions(+) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c i

[Mesa-dev] [RFC] [PATCH 3/3] i965: implement driResourceSharing extension.

2013-07-14 Thread Zhigang Gong
This patch implements the texture sharing. Signed-off-by: Zhigang Gong --- src/mesa/drivers/dri/i965/Makefile.am |2 + src/mesa/drivers/dri/i965/Makefile.sources |1 + .../drivers/dri/i965/intel_dri_resource_share.c| 192 .../drivers/dri/i96

[Mesa-dev] [PATCH] mesa: Reject VertexAttribPointer() with GL_BGRA and !normalized.

2013-07-14 Thread Kenneth Graunke
Fixes Piglit's ARB_vertex_attrib_bgra/api-errors test. Signed-off-by: Kenneth Graunke --- src/mesa/main/varray.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 529d933..48f15bd 100644 --- a/src/mesa/main/varray.c +++ b/src/me