From: Dave Airlie Date: Mon, 11 Apr 2016 02:20:38 +0000 (+1000) Subject: tgsi: set nonhelpermask for vertex shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c7a0d188a495a247570a27bc4af77c540e40c34;p=mesa.git 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 Reviewed-by: Roland Scheidegger Signed-off-by: Dave Airlie --- diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c index 5b53cff29f0..4cd755e11ce 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 );