[Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Kenneth Graunke
The code is cut-and-pasted from dri2_glx.c; we can't quite share it because we have to use different structures. Signed-off-by: Kenneth Graunke kenn...@whitecape.org Cc: Keith Packard kei...@keithp.com --- src/glx/dri3_glx.c | 35 ++- src/glx/dri3_priv.h | 6

[Mesa-dev] [PATCH] i965: Rename intel_bufferobj_* functions to match GL and DD hooks.

2014-10-28 Thread Kenneth Graunke
The GL functions and driver hooks use corresponding names---for example, glMapBufferRange and Driver.MapBufferRange. But our implementation was called intel_bufferobj_map_range, which has the words map and buffer swapped, as well as randomly adding obj. FlushMappedBufferRange was even trickier:

[Mesa-dev] [Bug 59225] SIGSEGV src/mesa/program/symbol_table.c:200

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=59225 --- Comment #1 from Andrés Gómez García ago...@igalia.com --- Is this valid any more? piglit: b13d0bb86d175e36e013dbd528a50e59308adad0 (master) mesa: 17d98ae25491d5781356da39658f926ed55f2eb5 (master) $ ./piglit run -t arb_es2_compatibility

[Mesa-dev] [Bug 59225] SIGSEGV src/mesa/program/symbol_table.c:200

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=59225 Andrés Gómez García ago...@igalia.com changed: What|Removed |Added Status|NEW |NEEDINFO -- You

Re: [Mesa-dev] [RFC] egl: Add DRI3 support to the EGL backend.

2014-10-28 Thread Joonas Lahtinen
Hi, On pe, 2014-10-24 at 17:37 +, Emil Velikov wrote: Hi Joonas, On 22/10/14 18:17, Joonas Lahtinen wrote: Hi, This patch introduced DRI3 support to the EGL backend. Patch is on top of current master. With the patch you can observe reduced CPU stress when many glViewport

Re: [Mesa-dev] [RFC] egl: Add DRI3 support to the EGL backend.

2014-10-28 Thread Axel Davy
On 28/10/2014 10:19, Joonas Lahtinen wrote : Hi, On pe, 2014-10-24 at 17:37 +, Emil Velikov wrote: Hi Joonas, On 22/10/14 18:17, Joonas Lahtinen wrote: Hi, This patch introduced DRI3 support to the EGL backend. Patch is on top of current master. With the patch you can observe reduced

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #43 from Iago Toral ito...@igalia.com --- Jason, we are running into some issues when attempting to use _mesa_format_convert for glReadPixels and glGetTexImage. Generally, one thing that is different in this case is that the current

Re: [Mesa-dev] [RFC] egl: Add DRI3 support to the EGL backend.

2014-10-28 Thread Emil Velikov
On 28/10/14 09:19, Joonas Lahtinen wrote: Hi, On pe, 2014-10-24 at 17:37 +, Emil Velikov wrote: Hi Joonas, On 22/10/14 18:17, Joonas Lahtinen wrote: Hi, This patch introduced DRI3 support to the EGL backend. Patch is on top of current master. With the patch you can observe reduced

Re: [Mesa-dev] [RFC] egl: Add DRI3 support to the EGL backend.

2014-10-28 Thread Joonas Lahtinen
Hi, Comments below. On ti, 2014-10-28 at 12:44 +0100, Axel Davy wrote: On 28/10/2014 10:19, Joonas Lahtinen wrote : Hi, On pe, 2014-10-24 at 17:37 +, Emil Velikov wrote: Hi Joonas, On 22/10/14 18:17, Joonas Lahtinen wrote: Hi, This patch introduced DRI3 support to the EGL

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #44 from Iago Toral ito...@igalia.com --- (In reply to Iago Toral from comment #43) (...) 3) Luminance formats have special requirements. A conversion to Luminance from RGBA requires to do L=R+G+B for example. This is something that

[Mesa-dev] [Bug 85467] [llvmpipe] piglit gl-1.0-dlist-beginend failure with llvm-3.6.0svn

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85467 --- Comment #2 from José Fonseca jfons...@vmware.com --- This is probably along the same lines as https://bugs.freedesktop.org/show_bug.cgi?id=85377 However it seems that, this time around, its not in an unit test, but that we're actually making

[Mesa-dev] [Bug 85467] [llvmpipe] piglit gl-1.0-dlist-beginend failure with llvm-3.6.0svn

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85467 --- Comment #3 from José Fonseca jfons...@vmware.com --- $ gdb --args ./bin/gl-1.0-dlist-beginend -auto [...] Program received signal SIGSEGV, Segmentation fault. 0x77eb8288 in ?? () (gdb) disassemble 0x77eb8240,0x77eb82ff

[Mesa-dev] [Bug 85467] [llvmpipe] piglit gl-1.0-dlist-beginend failure with llvm-3.6.0svn

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85467 José Fonseca jfons...@vmware.com changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |srol...@vmware.com

Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Tue, Oct 28, 2014 at 8:09 AM, Kenneth Graunke kenn...@whitecape.org wrote: The code is cut-and-pasted from dri2_glx.c; we can't quite share it because we have to use different structures. Signed-off-by: Kenneth Graunke

[Mesa-dev] [Bug 85419] Assertion fail with triangle strips

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85419 --- Comment #5 from Roland Scheidegger srol...@vmware.com --- (In reply to James Evans from comment #2) Thanks for the tip with '~0' I was unaware of that. I only used '0x' because that was what was used in the red book examples. I

Re: [Mesa-dev] [PATCH] i965: Rename intel_bufferobj_* functions to match GL and DD hooks.

2014-10-28 Thread Kristian Høgsberg
On Tue, Oct 28, 2014 at 1:19 AM, Kenneth Graunke kenn...@whitecape.org wrote: The GL functions and driver hooks use corresponding names---for example, glMapBufferRange and Driver.MapBufferRange. But our implementation was called intel_bufferobj_map_range, which has the words map and buffer

[Mesa-dev] [Bug 85425] [bisected] Compiler error in clip control operations in meta

2014-10-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85425 Neil Roberts n...@linux.intel.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Keith Packard
Kenneth Graunke kenn...@whitecape.org writes: The code is cut-and-pasted from dri2_glx.c; we can't quite share it because we have to use different structures. It might be fun to use the UST value provided in the PRESENT_COMPLETE_NOTIFY event instead of a local gettimeofday call? That way you'd

Re: [Mesa-dev] [PATCH 3/5] mesa: Handle clip control in meta operations.

2014-10-28 Thread Neil Roberts
On inspection it looks like this would potentially break _mesa_meta_Clear when it is using GLSL because that does not save the MESA_META_TRANSFORM state. I wonder if MESA_META_TRANSFORM is not the right state flag for this because all of the other state in it is about fixed-function stuff which

Re: [Mesa-dev] [PATCH] i965/fs: Change the type of booleans to UD and emit correct immediates

2014-10-28 Thread Matt Turner
On Thu, Oct 16, 2014 at 3:40 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Before, we used the a signed d-word for booleans and the immedates we emitted varried between signed and unsigned. This commit changes the type to unsigned (I think that makes more sense) and makes immediates more

[Mesa-dev] [PATCH] Revert st/mesa: set MaxUnrollIterations = 255

2014-10-28 Thread Marek Olšák
From: Marek Olšák marek.ol...@amd.com This reverts commit 20836c81851e0df29a8ee9c86e5e5388738c840b. 255 is a huge number. If you have a loop with 255 iterations, unrolling it will exceed the SM3 instruction limit. Let's use the default again. The comment about a SM3 limit doesn't make sense.

Re: [Mesa-dev] [PATCH] i965/fs: Change the type of booleans to UD and emit correct immediates

2014-10-28 Thread Jason Ekstrand
On Oct 28, 2014 11:57 AM, Matt Turner matts...@gmail.com wrote: On Thu, Oct 16, 2014 at 3:40 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Before, we used the a signed d-word for booleans and the immedates we emitted varried between signed and unsigned. This commit changes the type to

Re: [Mesa-dev] [PATCH] i965/fs: Change the type of booleans to UD and emit correct immediates

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 12:10 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Oct 28, 2014 11:57 AM, Matt Turner matts...@gmail.com wrote: On Thu, Oct 16, 2014 at 3:40 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Before, we used the a signed d-word for booleans and the immedates we

Re: [Mesa-dev] [PATCH] i965: add ARB_clip_control on ivybridge/haswell.

2014-10-28 Thread Neil Roberts
I think if you change the clip depth mode without changing the clip origin then only the _NEW_VIEWPORT state would be set. Does that mean we have to add _NEW_VIEWPORT to the state for the gen7_clip_state atom as well to make sure that upload_clip_state is called? There is also some state for the

Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Kenneth Graunke
On Tuesday, October 28, 2014 11:12:40 AM Keith Packard wrote: Kenneth Graunke kenn...@whitecape.org writes: The code is cut-and-pasted from dri2_glx.c; we can't quite share it because we have to use different structures. It might be fun to use the UST value provided in the

Re: [Mesa-dev] [PATCH] i965: add ARB_clip_control on ivybridge/haswell.

2014-10-28 Thread Mathias Fröhlich
Hi, On Tuesday, October 28, 2014 19:43:23 Neil Roberts wrote: I think if you change the clip depth mode without changing the clip origin then only the _NEW_VIEWPORT state would be set. Does that mean we have to add _NEW_VIEWPORT to the state for the gen7_clip_state atom as well to make sure

Re: [Mesa-dev] [PATCH V4] mesa: add SSE optimisation for glDrawElements

2014-10-28 Thread Timothy Arceri
On Mon, 2014-10-27 at 20:04 +, Bruno Jimenez wrote: [snip] + + if (aligned_count = 4) { ^^ Hi, I have been thinking and I think that you can change that 4 for an 8. In the case aligned_count == 4 there's no gain in using SSE, as you will

Re: [Mesa-dev] [PATCH] glx/dri3: Port LIBGL_SHOW_FPS=1 code from DRI2 to DRI3.

2014-10-28 Thread Keith Packard
Kenneth Graunke kenn...@whitecape.org writes: Is UST expressed in a particular unit? I thought it was just monotonically increasing but otherwise meaningless. At which point, our FPS would be frames per...something? :) UST in GL's extension is not defined, but Present uses microseconds.

Re: [Mesa-dev] [PATCH] mesa/gallium: Signal _NEW_TRANSFORM from glClipControl.

2014-10-28 Thread Marek Olšák
Yes, thanks! Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Sat, Oct 25, 2014 at 10:42 AM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich mathias.froehl...@gmx.net Hi Marek, Did you have something like below in mind? Mathias This removes the need for the gallium

Re: [Mesa-dev] [PATCH] i965/fs: Change the type of booleans to UD and emit correct immediates

2014-10-28 Thread Kenneth Graunke
On Tuesday, October 28, 2014 12:10:11 PM Jason Ekstrand wrote: On Oct 28, 2014 11:57 AM, Matt Turner matts...@gmail.com wrote: On Thu, Oct 16, 2014 at 3:40 PM, Jason Ekstrand ja...@jlekstrand.net wrote: Before, we used the a signed d-word for booleans and the immedates we emitted

Re: [Mesa-dev] [PATCH] Revert st/mesa: set MaxUnrollIterations = 255

2014-10-28 Thread Brian Paul
On 10/28/2014 01:08 PM, Marek Olšák wrote: From: Marek Olšák marek.ol...@amd.com This reverts commit 20836c81851e0df29a8ee9c86e5e5388738c840b. 255 is a huge number. If you have a loop with 255 iterations, unrolling it will exceed the SM3 instruction limit. Let's use the default again. The

Re: [Mesa-dev] [PATCH V4] mesa: add SSE optimisation for glDrawElements

2014-10-28 Thread Bruno Jimenez
On Wed, 2014-10-29 at 07:49 +1100, Timothy Arceri wrote: On Mon, 2014-10-27 at 20:04 +, Bruno Jimenez wrote: [snip] + + if (aligned_count = 4) { ^^ Hi, I have been thinking and I think that you can change that 4 for an 8. In the

[Mesa-dev] [PATCH 00/14] SIMD8 vertex shaders for BDW+

2014-10-28 Thread Kristian Høgsberg
With Broadwell we have the option to run vertex shaders in scalar (SIMD8) mode which potentially gives us better throughput and more vertices per thread dispatch. This patch series implements this by repurposing our fs backend to also work for vertex shaders. Kristian Høgsberg (14): i965:

[Mesa-dev] [PATCH 11/14] i965: Move fs_visitor ra pass to new fs_visitor::allocate_registers()

2014-10-28 Thread Kristian Høgsberg
This will be reused for the scalar VS pass. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 132 +++ src/mesa/drivers/dri/i965/brw_fs.h | 1 + 2 files changed, 71 insertions(+), 62 deletions(-) diff --git

[Mesa-dev] [PATCH 13/14] i965: Clean up fs_visitor::run and rename to run_fs

2014-10-28 Thread Kristian Høgsberg
Now that fs_visitor::run is back to being only fragment shader compilation, we can clean up a few stage == MESA_SHADER_FRAGMENT conditions and rename it to run_fs. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 31 +--

[Mesa-dev] [PATCH 01/14] i965: Don't copy propagate sat MOVs into LOAD_PAYLOAD

2014-10-28 Thread Kristian Høgsberg
The LOAD_PAYLOAD opcode can't saturate its sources, so skip saturating MOVs. The register coalescing after lower_load_payload() will clean up the extra MOVs. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 6 +- 1 file changed,

[Mesa-dev] [PATCH 12/14] i965: Add fs_visitor::run_vs() to generate scalar vertex shader code

2014-10-28 Thread Kristian Høgsberg
This patch uses the previous refactoring to add a new run_vs() method that generates vertex shader code using the scalar visitor and optimizer. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 101 - src/mesa/drivers/dri/i965/brw_fs.h

[Mesa-dev] [PATCH 05/14] i965: Add SIMD8 URB write low-level IR instruction

2014-10-28 Thread Kristian Høgsberg
This is all we need from the generator for SIMD8 vertex shaders. This opcode is just the send instruction, all the hard work will happen in the visitor using LOAD_PAYLOAD. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_defines.h | 1 +

[Mesa-dev] [PATCH 03/14] i965: Set shader name for generator from call site

2014-10-28 Thread Kristian Høgsberg
fs_generator no longer knows what stage it's generating code for, so we have to set the debug name of the shader from the call site. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 4 +++- src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH 06/14] i965: Add new SIMD8 VS prog data flag

2014-10-28 Thread Kristian Høgsberg
This flag signals that we have a SIMD8 VS shader so we can set up the corresponding state accordingly. This boils down to setting the BDW+ SIMD8 enable bit in 3DSTATE_VS and making UBO and pull constant buffers use dword pitch. Signed-off-by: Kristian Høgsberg k...@bitplanet.net ---

[Mesa-dev] [PATCH 04/14] i965: Remove shader program argument and member from fs_generator

2014-10-28 Thread Kristian Høgsberg
Now that the caller passes in the shader debug name, we don't need this anymore. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs.cpp| 2 +- src/mesa/drivers/dri/i965/brw_fs.h

[Mesa-dev] [PATCH 07/14] i965: Consolidate code to get struct brw_sampler_prog_key_data

2014-10-28 Thread Kristian Høgsberg
This chunk of code is repeated in a few places, and we're going to add a MESA_SHADER_VERTEX case to it soon. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 37 1 file changed, 16 insertions(+), 21 deletions(-)

[Mesa-dev] [PATCH 09/14] i965: Move more code into codegen-branch of the fs_visitor::run() if statement

2014-10-28 Thread Kristian Høgsberg
These last few operations all only apply when we've actually generated code, optimized and allocated registers. The dummy and the repclear shaders don't touch uncompressed_stack, don't need the gen4 send workaround, and don't spill. This means we can move these lines into the else-branch, which

[Mesa-dev] [PATCH 02/14] i965: Generalize fs_generator further

2014-10-28 Thread Kristian Høgsberg
This removes all stage specific data from the generator, and lets us create a generator for any stage. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 5 ++--- src/mesa/drivers/dri/i965/brw_fs.cpp| 2 +-

[Mesa-dev] [PATCH 14/14] i965: Generate vs code using scalar backend for BDW+

2014-10-28 Thread Kristian Høgsberg
With everything in place, we can now use the scalar backend compiler for vertex shaders on BDW+. We make scalar vertex shaders the default on BDW+ but add a new vec4vs debug option to force the vec4 backend. No piglit regressions. Performance impact is minimal, I see a ~1.5 improvement on the

[Mesa-dev] [PATCH 08/14] i965: Prepare for using the ATTR register file in the fs backend

2014-10-28 Thread Kristian Høgsberg
The scalar vertex shader will use the ATTR register file for vertex attributes. This patch adds support for the ATTR file to fs_visitor. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 12 ++-- src/mesa/drivers/dri/i965/brw_fs.h

[Mesa-dev] [PATCH 10/14] i965: Move fs_visitor optimization pass into new method fs_visitor::optimize()

2014-10-28 Thread Kristian Høgsberg
We'll reuse this toplevel optimization driver for the scalar VS. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 136 ++- src/mesa/drivers/dri/i965/brw_fs.h | 1 + 2 files changed, 72 insertions(+), 65

Re: [Mesa-dev] [PATCH 01/14] i965: Don't copy propagate sat MOVs into LOAD_PAYLOAD

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: The LOAD_PAYLOAD opcode can't saturate its sources, so skip saturating MOVs. The register coalescing after lower_load_payload() will clean up the extra MOVs. Signed-off-by: Kristian Høgsberg k...@bitplanet.net ---

Re: [Mesa-dev] [PATCH] st/mesa: use PIPE_BIND_DISPLAY_TARGET when checking for sRGB capability

2014-10-28 Thread Charmaine Lee
Reviewed-by: Charmaine Lee charmai...@vmware.com From: mesa-dev mesa-dev-boun...@lists.freedesktop.org on behalf of Brian Paul bri...@vmware.com Sent: Monday, October 27, 2014 2:04 PM To: mesa-dev@lists.freedesktop.org Subject: [Mesa-dev] [PATCH] st/mesa:

Re: [Mesa-dev] [PATCH 02/14] i965: Generalize fs_generator further

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: This removes all stage specific data from the generator, and lets us create a generator for any stage. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 5

Re: [Mesa-dev] [PATCH 02/14] i965: Generalize fs_generator further

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:58 PM, Matt Turner matts...@gmail.com wrote: On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: This removes all stage specific data from the generator, and lets us create a generator for any stage. Signed-off-by: Kristian Høgsberg

Re: [Mesa-dev] [PATCH 05/14] i965: Add SIMD8 URB write low-level IR instruction

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: This is all we need from the generator for SIMD8 vertex shaders. This opcode is just the send instruction, all the hard work will happen in the visitor using LOAD_PAYLOAD. Signed-off-by: Kristian Høgsberg

Re: [Mesa-dev] [PATCH 06/14] i965: Add new SIMD8 VS prog data flag

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: This flag signals that we have a SIMD8 VS shader so we can set up the corresponding state accordingly. This boils down to setting the BDW+ SIMD8 enable bit in 3DSTATE_VS and making UBO and pull constant buffers use

Re: [Mesa-dev] [PATCH 08/14] i965: Prepare for using the ATTR register file in the fs backend

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: The scalar vertex shader will use the ATTR register file for vertex attributes. This patch adds support for the ATTR file to fs_visitor. Signed-off-by: Kristian Høgsberg k...@bitplanet.net ---

Re: [Mesa-dev] [PATCH 09/14] i965: Move more code into codegen-branch of the fs_visitor::run() if statement

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: These last few operations all only apply when we've actually generated code, optimized and allocated registers. The dummy and the repclear shaders don't touch uncompressed_stack, don't need the gen4 send workaround,

Re: [Mesa-dev] [PATCH 01/14] i965: Don't copy propagate sat MOVs into LOAD_PAYLOAD

2014-10-28 Thread Kenneth Graunke
On Tuesday, October 28, 2014 03:41:45 PM Matt Turner wrote: On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: The LOAD_PAYLOAD opcode can't saturate its sources, so skip saturating MOVs. The register coalescing after lower_load_payload() will clean up the extra

Re: [Mesa-dev] [PATCH 01/14] i965: Don't copy propagate sat MOVs into LOAD_PAYLOAD

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 4:50 PM, Kenneth Graunke kenn...@whitecape.org wrote: On Tuesday, October 28, 2014 03:41:45 PM Matt Turner wrote: On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: The LOAD_PAYLOAD opcode can't saturate its sources, so skip saturating MOVs.

Re: [Mesa-dev] [PATCH] i965/fs: Change the type of booleans to UD and emit correct immediates

2014-10-28 Thread Jason Ekstrand
On Tue, Oct 28, 2014 at 12:29 PM, Matt Turner matts...@gmail.com wrote: On Tue, Oct 28, 2014 at 12:10 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Oct 28, 2014 11:57 AM, Matt Turner matts...@gmail.com wrote: On Thu, Oct 16, 2014 at 3:40 PM, Jason Ekstrand ja...@jlekstrand.net

Re: [Mesa-dev] [PATCH 02/14] i965: Generalize fs_generator further

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 3:59 PM, Matt Turner matts...@gmail.com wrote: - assert(stage == MESA_SHADER_FRAGMENT); I like removing these asserts from the function bodies, but I'm confused why you're doing it. The VS isn't going to call fire_fb_write, or emit a derivative instruction. Oh,

Re: [Mesa-dev] [PATCH] i965/fs: Change the type of booleans to UD and emit correct immediates

2014-10-28 Thread Jason Ekstrand
On Tue, Oct 28, 2014 at 5:23 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Tue, Oct 28, 2014 at 12:29 PM, Matt Turner matts...@gmail.com wrote: On Tue, Oct 28, 2014 at 12:10 PM, Jason Ekstrand ja...@jlekstrand.net wrote: On Oct 28, 2014 11:57 AM, Matt Turner matts...@gmail.com

Re: [Mesa-dev] [PATCH 06/14] i965: Add new SIMD8 VS prog data flag

2014-10-28 Thread Kenneth Graunke
On Tuesday, October 28, 2014 04:25:05 PM Matt Turner wrote: On Tue, Oct 28, 2014 at 3:17 PM, Kristian Høgsberg k...@bitplanet.net wrote: This flag signals that we have a SIMD8 VS shader so we can set up the corresponding state accordingly. This boils down to setting the BDW+ SIMD8 enable

Re: [Mesa-dev] [PATCH 06/14] i965: Add new SIMD8 VS prog data flag

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 5:48 PM, Kenneth Graunke kenn...@whitecape.org wrote: I believe Eric introduced the name, and it's been around for quite a while now. Feel free to submit a patch to rename it. Oh, yuck. Okay. ___ mesa-dev mailing list

[Mesa-dev] [PULL] i965: rename brw_gs - brw_ff_gs; rename brw_vec4_gs - brw_gs.

2014-10-28 Thread Kenneth Graunke
Hello, I'd like to rename some files in i965: - brw_gs.c - brw_ff_gs.c - brw_gs.h - brw_ff_gs.h - brw_gs_emit.c - brw_ff_gs_emit.c - brw_vec4_gs.c - brw_gs.c - brw_vec4_gs.h - brw_gs.h The current brw_gs files are about emulating fixed-function functionality (VF primitive

Re: [Mesa-dev] [PULL] i965: rename brw_gs - brw_ff_gs; rename brw_vec4_gs - brw_gs.

2014-10-28 Thread Matt Turner
On Tue, Oct 28, 2014 at 7:27 PM, Kenneth Graunke kenn...@whitecape.org wrote: I'd like to rename some files in i965: - brw_gs.c - brw_ff_gs.c - brw_gs.h - brw_ff_gs.h - brw_gs_emit.c - brw_ff_gs_emit.c - brw_vec4_gs.c - brw_gs.c - brw_vec4_gs.h - brw_gs.h Sounds good to me.

Re: [Mesa-dev] [PULL] i965: rename brw_gs - brw_ff_gs; rename brw_vec4_gs - brw_gs.

2014-10-28 Thread Jason Ekstrand
Ack On Oct 28, 2014 7:24 PM, Kenneth Graunke kenn...@whitecape.org wrote: Hello, I'd like to rename some files in i965: - brw_gs.c - brw_ff_gs.c - brw_gs.h - brw_ff_gs.h - brw_gs_emit.c - brw_ff_gs_emit.c - brw_vec4_gs.c - brw_gs.c - brw_vec4_gs.h - brw_gs.h The current

Re: [Mesa-dev] [PATCH V4] mesa: add SSE optimisation for glDrawElements

2014-10-28 Thread Timothy Arceri
On Tue, 2014-10-28 at 22:14 +, Bruno Jimenez wrote: On Wed, 2014-10-29 at 07:49 +1100, Timothy Arceri wrote: On Mon, 2014-10-27 at 20:04 +, Bruno Jimenez wrote: [snip] + + if (aligned_count = 4) { ^^ Hi, I have been