mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
193a5cee6a
commit
9c7a0d188a
1 changed files with 1 additions and 0 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue