Mesa (master): tgsi: set nonhelpermask for vertex shaders

Dave Airlie airlied at kemper.freedesktop.org
Tue Apr 12 04:32:56 UTC 2016


Module: Mesa
Branch: master
Commit: 9c7a0d188a495a247570a27bc4af77c540e40c34
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c7a0d188a495a247570a27bc4af77c540e40c34

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Apr 11 12:20:38 2016 +1000

tgsi: set nonhelpermask for vertex shaders

For atomic operations we really need to avoid executing unnecessary shaders, so for some
tests that just draw a single point we only want one vertex to get processed not 4,

this fixes a number of the atomic counters tests.

Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/auxiliary/draw/draw_vs_exec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c
index 5b53cff..4cd755e 100644
--- a/src/gallium/auxiliary/draw/draw_vs_exec.c
+++ b/src/gallium/auxiliary/draw/draw_vs_exec.c
@@ -159,6 +159,7 @@ vs_exec_run_linear( struct draw_vertex_shader *shader,
          input = (const float (*)[4])((const char *)input + input_stride);
       } 
 
+      machine->NonHelperMask = (1 << max_vertices) - 1;
       /* run interpreter */
       tgsi_exec_machine_run( machine );
 




More information about the mesa-commit mailing list