Re: [Mesa-dev] [PATCH] gles2: a stub implementation for GL_EXT_discard_framebuffer

2013-02-12 Thread Tapani Pälli
On 02/12/2013 12:38 AM, Eric Anholt wrote: Tapani Pälli tapani.pa...@intel.com writes: This patch implements a stub for GL_EXT_discard_framebuffer with required checks listed by the extension specification. This extension is required by GLBenchmark 2.5 when compiled with OpenGL ES 2.0 as the

Re: [Mesa-dev] [PATCH] util: fix incorrect Z bit masking in util_clear_depth_stencil()

2013-02-12 Thread Jose Fonseca
Good catch! Reviewed-by: Jose Fonseca jfons...@vmware.com - Original Message - For PIPE_FORMAT_Z24_UNORM_S8_UINT, the Z bits are in the 24 least significant bits. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=60527 and http://bugs.freedesktop.org/show_bug.cgi?id=60524 and

Re: [Mesa-dev] [PATCH] gallium: fix tgsi SAMPLE_L opcode to use separate source for explicit lod

2013-02-12 Thread Jose Fonseca
- Original Message - On Mon, 2013-02-11 at 20:47 +0100, srol...@vmware.com wrote: From: Roland Scheidegger srol...@vmware.com It looks like using coord.w as explicit lod value is a mistake, most likely because some dx10 docs had it specified that way. Seems this was changed

[Mesa-dev] Using SDL with OpenGL/Mesa

2013-02-12 Thread Ritvik_Sharma
Hi, When we initialize OpenGL using SDL do we need to take care of the rendering part or does SDL does the output rendering and just uses the OpenGL functions? Thanks and Regards Ritvik ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH] R600: Add lit tests for texture sampling instruction selection.

2013-02-12 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com Signed-off-by: Michel Dänzer michel.daen...@amd.com --- test/CodeGen/R600/llvm.AMDGPU.tex.ll | 42 + test/CodeGen/R600/llvm.SI.sample.ll | 71 2 files changed, 113 insertions(+) create mode

Re: [Mesa-dev] [PATCH] gallium: fix tgsi SAMPLE_L opcode to use separate source for explicit lod

2013-02-12 Thread Christoph Bumiller
On 11.02.2013 20:47, srol...@vmware.com wrote: From: Roland Scheidegger srol...@vmware.com It looks like using coord.w as explicit lod value is a mistake, most likely because some dx10 docs had it specified that way. Seems this was changed though:

Re: [Mesa-dev] [PATCH] gallium: fix tgsi SAMPLE_L opcode to use separate source for explicit lod

2013-02-12 Thread Roland Scheidegger
Am 12.02.2013 08:06, schrieb Michel Dänzer: On Mon, 2013-02-11 at 20:47 +0100, srol...@vmware.com wrote: From: Roland Scheidegger srol...@vmware.com It looks like using coord.w as explicit lod value is a mistake, most likely because some dx10 docs had it specified that way. Seems this was

[Mesa-dev] [Bug 60723] Unable to compile Mesa 9.0.2 for radeon

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60723 Michel Dänzer mic...@daenzer.net changed: What|Removed |Added Assignee|dri-devel@lists.freedesktop

Re: [Mesa-dev] [PATCH] R600: Add lit tests for texture sampling instruction selection.

2013-02-12 Thread Tom Stellard
On Tue, Feb 12, 2013 at 12:59:14PM +0100, Michel Dänzer wrote: From: Michel Dänzer michel.daen...@amd.com Signed-off-by: Michel Dänzer michel.daen...@amd.com --- test/CodeGen/R600/llvm.AMDGPU.tex.ll | 42 + test/CodeGen/R600/llvm.SI.sample.ll | 71

Re: [Mesa-dev] [PATCH 1/2] R600/SI: Turn BUILD_VECTOR into Reg_Sequence

2013-02-12 Thread Tom Stellard
On Tue, Feb 12, 2013 at 10:24:24AM +0100, Michel Dänzer wrote: On Mon, 2013-02-11 at 19:39 +0100, Vincent Lejeune wrote: --- lib/Target/R600/AMDILISelDAGToDAG.cpp | 24 1 file changed, 24 insertions(+) diff --git a/lib/Target/R600/AMDILISelDAGToDAG.cpp

Re: [Mesa-dev] [PATCH 1/2] R600/SI: Turn BUILD_VECTOR into Reg_Sequence

2013-02-12 Thread Michel Dänzer
On Die, 2013-02-12 at 15:26 +0100, Tom Stellard wrote: On Tue, Feb 12, 2013 at 10:24:24AM +0100, Michel Dänzer wrote: On Mon, 2013-02-11 at 19:39 +0100, Vincent Lejeune wrote: --- lib/Target/R600/AMDILISelDAGToDAG.cpp | 24 1 file changed, 24 insertions(+)

[Mesa-dev] [Bug 60047] [softpipe] piglit masked-clear regression

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60047 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 60524] [softpipe] piglit depthstencil-render-miplevels 146 s=z24_s8 regression

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60524 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 60527] [softpipe] fbo-stencil GL_DEPTH24_STENCIL8 clear regression

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60527 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 60706] [llvmpipe] piglit fbo-blending-formats GL_EXT_texture_snorm regression with llvm-3.3svn

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60706 --- Comment #4 from José Fonseca jfons...@vmware.com --- (In reply to comment #3) This regression is llvm-3.3 specific. The test passes with llvm-3.2 and llvm-3.1. I've reported the regression to LLVM Bugzilla. Thanks Vinson! -- You are

Re: [Mesa-dev] Google Earth + glReleaseShaderCompiler problem

2013-02-12 Thread Brian Paul
On 02/11/2013 07:19 PM, Eric Anholt wrote: Brian Paulbri...@vmware.com writes: Google Earth v7 calls glReleaseShaderCompiler() and Mesa's GLSL compiler is crashing. In particular, it looks like glReleaseShaderCompiler() is getting called between glCompileShader() and glLinkProgram(). The

[Mesa-dev] [PATCH 1/2] glsl: don't allow non-flat integral types in varying structs/arrays.

2013-02-12 Thread Paul Berry
In the GLSL 1.30 spec, section 4.3.6 (Outputs) says: If a vertex output is a signed or unsigned integer or integer vector, then it must be qualified with the interpolation qualifier flat. The GLSL ES 3.00 spec further clarifies, in section 4.3.6 (Output Variables): Vertex shader

[Mesa-dev] [PATCH 2/2] glsl: Fix error checking on flat keyword to match GLSL ES 3.00, GLSL 1.50.

2013-02-12 Thread Paul Berry
All of the GLSL specs from GLSL 1.30 (and GLSL ES 3.00) onward contain language requiring certain integer variables to be declared with the flat keyword, but they differ in exactly *when* the rule is enforced: (a) GLSL 1.30 and 1.40 say that vertex shader outputs having integral type must be

[Mesa-dev] [Bug 60737] New: In GLSL ES, a missing FS precision qualifier does not generate an error

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60737 Priority: medium Bug ID: 60737 Assignee: mesa-dev@lists.freedesktop.org Summary: In GLSL ES, a missing FS precision qualifier does not generate an error Severity: normal

[Mesa-dev] [PATCH] R600/SI: Do not fold single instruction with more that 3 kcache read

2013-02-12 Thread Vincent Lejeune
It fixes around 100 tfb piglit tests and 16 glean tests. NOTE: This is a candidate for the Mesa stable branch. --- lib/Target/R600/AMDILISelDAGToDAG.cpp | 2 ++ lib/Target/R600/R600LowerConstCopy.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH] r600g: fix lockup when hyperz alpha test are enabled together. v3

2013-02-12 Thread j . glisse
From: Jerome Glisse jgli...@redhat.com Seems that alpha test being enabled confuse the GPU on the order in which it should perform the Z testing. So force the order programmed throught db shader control. v2: Only force z order when alpha test is enabled v3: Update db shader when binding new dsa

Re: [Mesa-dev] [PATCH] R600/SI: Do not fold single instruction with more that 3 kcache read

2013-02-12 Thread Tom Stellard
On Tue, Feb 12, 2013 at 05:23:43PM +0100, Vincent Lejeune wrote: It fixes around 100 tfb piglit tests and 16 glean tests. NOTE: This is a candidate for the Mesa stable branch. Hi Vincent, Could you add a lit test for this as well? Thanks, Tom --- lib/Target/R600/AMDILISelDAGToDAG.cpp |

[Mesa-dev] [Bug 60686] New account request

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60686 ajax at nwnk dot net a...@nwnk.net changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH 03/12] R600/structurizer: improve finding condition values

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Using the new NearestCommonDominator class. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPUStructurizeCFG.cpp | 31 +- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git

[Mesa-dev] [PATCH 05/12] R600/structurizer: improve inverting conditions

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Stop adding more instructions than necessary. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPUStructurizeCFG.cpp | 40 +- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 04/12] R600/structurizer: improve loop handling

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Generate more than one loop if it seems to make sense. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPUStructurizeCFG.cpp | 342 +- 1 file changed, 147 insertions(+), 195 deletions(-)

[Mesa-dev] [PATCH 06/12] R600/SI: remove some more unused code

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPUCodeEmitter.h| 45 lib/Target/R600/MCTargetDesc/AMDGPUMCCodeEmitter.h |7 --- 2 files changed, 52 deletions(-) delete mode

[Mesa-dev] [PATCH 07/12] R600/SI: move *_Helper definitions to SIInstrFormat.td

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/SIInstrFormats.td | 66 + lib/Target/R600/SIInstrInfo.td| 66 - 2 files changed, 66

[Mesa-dev] [PATCH 08/12] R600/SI: fix VOPC encoding

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Previously it only worked because of coincident. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/SIInstrFormats.td | 53 +++-- 1 file changed, 16 insertions(+), 37 deletions(-) diff

[Mesa-dev] [PATCH 09/12] R600/SI: replace AllReg_* with [SV]Src_*

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Mark all the operands that can also have an immediate. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/SIInstrFormats.td | 32 +- lib/Target/R600/SIInstructions.td | 128 ++---

[Mesa-dev] [PATCH 10/12] R600/SI: cleanup literal handling

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Seems to be allot simpler, and also paves the way for further improvements. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPU.h |1 - lib/Target/R600/AMDGPUAsmPrinter.cpp |

[Mesa-dev] [PATCH 11/12] R600/SI: nuke SReg_1

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com It's completely unnecessary and can be replace with proper SReg_64 handling instead. This actually fixes a piglit test on SI. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPUISelLowering.h | 10 ---

[Mesa-dev] [PATCH 01/12] R600/structurizer: add class to find the Nearest Common Dominator

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPUStructurizeCFG.cpp | 66 ++ 1 file changed, 66 insertions(+) diff --git a/lib/Target/R600/AMDGPUStructurizeCFG.cpp

[Mesa-dev] [PATCH 02/12] R600/structurizer: improve PHI value finding

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Using the new NearestCommonDominator class. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPUStructurizeCFG.cpp |6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/Target/R600/AMDGPUStructurizeCFG.cpp

[Mesa-dev] [PATCH 12/12] R600/SI: Add pattern to simplify i64 loading

2013-02-12 Thread Christian König
From: Christian König christian.koe...@amd.com Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/SIInstrInfo.td|4 lib/Target/R600/SIInstructions.td |5 + 2 files changed, 9 insertions(+) diff --git a/lib/Target/R600/SIInstrInfo.td

[Mesa-dev] [PATCH] radeonsi: Handle TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS

2013-02-12 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com 8 more little piglits. Signed-off-by: Michel Dänzer michel.daen...@amd.com --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 29 ++ 1 file changed, 29 insertions(+) diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c

Re: [Mesa-dev] [PATCH] radeonsi: Handle TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS

2013-02-12 Thread Tom Stellard
On Tue, Feb 12, 2013 at 06:39:09PM +0100, Michel Dänzer wrote: From: Michel Dänzer michel.daen...@amd.com 8 more little piglits. Is this a candidate for the stable branch? Signed-off-by: Michel Dänzer michel.daen...@amd.com --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 29

Re: [Mesa-dev] [PATCH V3 18/19] i965/fs: add support for ir_txf_ms on Gen6+

2013-02-12 Thread Eric Anholt
Chris Forbes chr...@ijw.co.nz writes: On Gen6, lower this to `ld` with lod=0 and an extra sample_index parameter. On Gen7, use `ld2dms`. We don't support CMS yet for multisample textures, so we just hardcode MCS=0. This is ignored for IMS and UMS surfaces. Note: If we do end up emitting

Re: [Mesa-dev] [PATCH V3 17/19] i965/vs: add support for ir_txf_ms on Gen6+

2013-02-12 Thread Eric Anholt
Chris Forbes chr...@ijw.co.nz writes: On Gen6, lower this to `ld` with lod=0 and an extra sample_index parameter. On Gen7, use `ld2dms`. This takes an additional MCS parameter to support compressed multisample surfaces, but we're not enabling them for multisample textures for now, so it's

Re: [Mesa-dev] [PATCH V3 12/19] mesa: implement TexImage*Multisample

2013-02-12 Thread Eric Anholt
Chris Forbes chr...@ijw.co.nz writes: V2: - fix formatting issues - generate GL_OUT_OF_MEMORY if teximage cannot be allocated - fix for state moving from texobj to image V3: - remove ridiculous stencil hack - alter format check to not allow a base format of STENCIL_INDEX -

Re: [Mesa-dev] [PATCH] gles2: a stub implementation for GL_EXT_discard_framebuffer

2013-02-12 Thread Eric Anholt
Tapani Pälli tapani.pa...@intel.com writes: On 02/12/2013 12:38 AM, Eric Anholt wrote: Tapani Pälli tapani.pa...@intel.com writes: --- src/mapi/glapi/gen/es_EXT.xml | 13 + src/mesa/drivers/dri/intel/intel_extensions.c | 1 + src/mesa/main/dd.h

[Mesa-dev] [PATCH] R600/SI: Add support for indirect addressing of non default const buffer

2013-02-12 Thread Vincent Lejeune
NOTE: This is a candidate for the Mesa stable branch. --- lib/Target/R600/R600ISelLowering.cpp | 6 -- lib/Target/R600/R600Instructions.td | 9 - 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/Target/R600/R600ISelLowering.cpp

[Mesa-dev] [PATCH] r600g/llvm: Add support for UBO

2013-02-12 Thread Vincent Lejeune
NOTE: This is a candidate for the Mesa stable branch. --- src/gallium/drivers/r600/r600_llvm.c| 10 +++--- src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 17 + src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 4 ++-- 3 files changed, 26

Re: [Mesa-dev] [PATCH] CopyTexImage: Don't check sRGB vs LINEAR for desktop GL

2013-02-12 Thread Jordan Justen
On Mon, Feb 11, 2013 at 4:50 PM, Anuj Phogat anuj.pho...@gmail.com wrote: On Mon, Feb 11, 2013 at 3:39 PM, Jordan Justen jordan.l.jus...@intel.com wrote: In OpenGL 4.3, new language was added that would require this check. But, if this check results in broken applications then perhaps it

Re: [Mesa-dev] [PATCH] CopyTexImage: Don't check sRGB vs LINEAR for desktop GL

2013-02-12 Thread Ian Romanick
On 02/12/2013 11:35 AM, Jordan Justen wrote: On Mon, Feb 11, 2013 at 4:50 PM, Anuj Phogat anuj.pho...@gmail.com wrote: On Mon, Feb 11, 2013 at 3:39 PM, Jordan Justen jordan.l.jus...@intel.com wrote: In OpenGL 4.3, new language was added that would require this check. But, if this check

Re: [Mesa-dev] [PATCH] r600g: fix lockup when hyperz alpha test are enabled together. v3

2013-02-12 Thread Marek Olšák
This looks good. Thanks. Reviewed-by: Marek Olšák mar...@gmail.com Marek On Tue, Feb 12, 2013 at 12:30 PM, j.gli...@gmail.com wrote: From: Jerome Glisse jgli...@redhat.com Seems that alpha test being enabled confuse the GPU on the order in which it should perform the Z testing. So force

Re: [Mesa-dev] [PATCH 09/12] R600/SI: replace AllReg_* with [SV]Src_*

2013-02-12 Thread Michel Dänzer
On Die, 2013-02-12 at 18:13 +0100, Christian König wrote: From: Christian König christian.koe...@amd.com Mark all the operands that can also have an immediate. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/SIInstrFormats.td | 32 +-

[Mesa-dev] [PATCH] glsl: Allow default precision qualifiers to be set for sampler types.

2013-02-12 Thread Paul Berry
From GLSL ES 3.00 section 4.5.4 (Default Precision Qualifiers): The precision statement precision precision-qualifier type; can be used to establish a default precision qualifier. The type field can be either int or float or any of the sampler types, and the

[Mesa-dev] [Bug 60737] In GLSL ES, a missing FS precision qualifier does not generate an error

2013-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60737 --- Comment #1 from Paul Berry stereotype...@gmail.com --- Ok, this turned out to be more complex than I thought (don't they always?). In addition to the problem described above: 1. The spec says that default precision statements are alowed on

Re: [Mesa-dev] [PATCH 2/2] R600: initial scheduler code

2013-02-12 Thread Andrew Trick
On Feb 11, 2013, at 10:39 AM, Vincent Lejeune v...@ovi.com wrote: +// Using LiveInterval should make things a lot more efficient, but we +// can't access them inside a MachineSchedStrategy. +// Scheduling occurs on a per MBB basis, so it is sufficient to get deps +// inside a

[Mesa-dev] [PATCH] R600: Do not fold single instruction with more that 3 kcache read

2013-02-12 Thread Vincent Lejeune
It fixes around 100 tfb piglit tests and 16 glean tests. NOTE: This is a candidate for the Mesa stable branch. --- lib/Target/R600/AMDILISelDAGToDAG.cpp | 2 ++ lib/Target/R600/R600LowerConstCopy.cpp | 2 +- test/CodeGen/R600/kcache-fold.ll | 52 ++ 3

Re: [Mesa-dev] [PATCH 07/12] R600/SI: move *_Helper definitions to SIInstrFormat.td

2013-02-12 Thread Tom Stellard
On Tue, Feb 12, 2013 at 06:13:19PM +0100, Christian König wrote: From: Christian König christian.koe...@amd.com SIInstrFormats.td should contain the instruction encoding definitions and everything else should go in SIInstrInfo.td. I got this backwards, when I first created these files, so

Re: [Mesa-dev] [PATCH 10/12] R600/SI: cleanup literal handling

2013-02-12 Thread Tom Stellard
On Tue, Feb 12, 2013 at 06:13:22PM +0100, Christian König wrote: From: Christian König christian.koe...@amd.com Seems to be allot simpler, and also paves the way for further improvements. Signed-off-by: Christian König christian.koe...@amd.com --- lib/Target/R600/AMDGPU.h

Re: [Mesa-dev] [PATCH 1/2] glsl: don't allow non-flat integral types in varying structs/arrays.

2013-02-12 Thread Anuj Phogat
On Tue, Feb 12, 2013 at 8:12 AM, Paul Berry stereotype...@gmail.com wrote: In the GLSL 1.30 spec, section 4.3.6 (Outputs) says: If a vertex output is a signed or unsigned integer or integer vector, then it must be qualified with the interpolation qualifier flat. The GLSL ES 3.00

[Mesa-dev] [PATCH] r600g: properly implement S8Z24 depth-stencil format for Evergreen

2013-02-12 Thread Marek Olšák
I should say fix, but it has never been used until now. S8Z24 is the format equivalent to the GL_UNSIGNED_INT_24_8 packing, so we'll start to see it more often with st/mesa now making smart decisions about formats. The DB-CB copy can change the channel ordering for transfers, other than that, the

[Mesa-dev] [PATCH 1/2] st/mesa: fix texture buffer objects

2013-02-12 Thread Marek Olšák
Broken by 624528834f53f54c7a934f929769b7e6b230a0b1. --- src/mesa/state_tracker/st_atom_texture.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_texture.c b/src/mesa/state_tracker/st_atom_texture.c index 28327bc..fc2d690 100644

[Mesa-dev] [PATCH 2/2] st/mesa: try to find exact format matching user format and type for DrawPixels

2013-02-12 Thread Marek Olšák
--- src/mesa/state_tracker/st_cb_drawpixels.c | 28 +++ src/mesa/state_tracker/st_cb_texture.c| 30 ++--- src/mesa/state_tracker/st_format.c| 35 + src/mesa/state_tracker/st_format.h|3 +++ 4 files

[Mesa-dev] [PATCH 1/3] i965: Don't consider MRFs read that are first implicitly written.

2013-02-12 Thread Kenneth Graunke
Normally, SEND messages read existing MRF values, which were previously written by some other instruction. However, some meta-instructions (like FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD) implicitly write MRFs before reading them. In that case, the existing MRF values aren't actually read.

[Mesa-dev] [PATCH 2/3] i965: Don't record a WAW dependency between implicit MRF operations.

2013-02-12 Thread Kenneth Graunke
Meta-instructions that implicitly write then read/consume a MRF value don't pose write-after-write conflicts with each other, since they're actually: - Write value 1, then consume it. - Write value 2, then consume it. These can safely be done in either order. By tracking the last implicit write

[Mesa-dev] [PATCH 3/3] i965: Enable OpenGL ES 3.0 support on Sandybridge.

2013-02-12 Thread Kenneth Graunke
We've fixed all the conformance failures, so we can turn it on now. NOTE: This is a candidate for the 9.1 branch. Cc: Eric Anholt e...@anholt.net Cc: Ian Romanick i...@freedesktop.org Cc: Matt Turner matts...@gmail.com Signed-off-by: Kenneth Graunke kenn...@whitecape.org ---

[Mesa-dev] [PATCH] glsl: Remove VS output varyings which are optimized out of the FS

2013-02-12 Thread Jordan Justen
Previously when an input varying was optimized out of the FS we would still retain it as an output of the VS. We now build a hash of live FS input varyings rather than looking in the FS symbol table. (The FS symbol table will still contain the optimized out varyings.) Signed-off-by: Jordan

Re: [Mesa-dev] [PATCH] glsl: Remove VS output varyings which are optimized out of the FS

2013-02-12 Thread Jordan Justen
Paul, Ken, In case you were interested, I confirmed that this fixes (or more accurately it masks) the Steam Big Picture issue that Ken fixed in 09fbc298. (I checked the effects of this patch with 09fbc298 removed.) You two had suspected this change might mask that particular issue. -Jordan On

[Mesa-dev] [PATCH 1/2] i965: Lower textureGrad() for samplerCubeShadow.

2013-02-12 Thread Kenneth Graunke
GLSL provides gradients for the 'r' coordinate (face ID), while our hardware apparently ignores them. Sadly, this means that sample_d and sample_d_c appear to be unsuitable for OpenGL, and need to be lowered. For now, only handle samplerCubeShadow; we need tests for samplerCube and

[Mesa-dev] [PATCH 2/2] i965/vs: Fix textureGrad() with shadow samplers on Haswell.

2013-02-12 Thread Kenneth Graunke
The shadow comparitor needs to be loaded into the Z component of the last DWord. Fixes es3conform's shadow_execution_vert and oglconform's shadow-grad advanced.textureGrad.1D tests on Haswell. NOTE: This is a candidate for stable branches. Signed-off-by: Kenneth Graunke kenn...@whitecape.org

Re: [Mesa-dev] [PATCH 10/12] R600/SI: cleanup literal handling

2013-02-12 Thread Michel Dänzer
On Die, 2013-02-12 at 19:39 -0500, Tom Stellard wrote: On Tue, Feb 12, 2013 at 06:13:22PM +0100, Christian König wrote: From: Christian König christian.koe...@amd.com Seems to be allot simpler, and also paves the way for further improvements. [...] diff --git

Re: [Mesa-dev] [PATCH] gles2: a stub implementation for GL_EXT_discard_framebuffer

2013-02-12 Thread Tapani Pälli
On 02/12/2013 08:45 PM, Eric Anholt wrote: Tapani Pälli tapani.pa...@intel.com writes: On 02/12/2013 12:38 AM, Eric Anholt wrote: Tapani Pälli tapani.pa...@intel.com writes: --- src/mapi/glapi/gen/es_EXT.xml | 13 + src/mesa/drivers/dri/intel/intel_extensions.c |

Re: [Mesa-dev] [PATCH V3 04/19] glsl: add support for ARB_texture_multisample

2013-02-12 Thread Kenneth Graunke
On 02/08/2013 01:19 AM, Chris Forbes wrote: V2: - emit `sample` parameter properly for multisample texelFetch() - fix spurious whitespace change - introduce a new opcode ir_txf_ms rather than overloading the existing ir_txf further. This makes doing the right thing in the