mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 05:40:39 +02:00
anv/cmd_buffer: Use gen_mi_sub instead of gen_mi_add with a negative
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
d17dd46b09
commit
0d6dea0ac8
1 changed files with 1 additions and 1 deletions
|
|
@ -2950,7 +2950,7 @@ void genX(CmdDrawIndirectByteCountEXT)(
|
|||
gen_mi_mem32(anv_address_add(counter_buffer->address,
|
||||
counterBufferOffset));
|
||||
if (counterOffset)
|
||||
count = gen_mi_iadd(&b, count, gen_mi_imm(-counterOffset));
|
||||
count = gen_mi_isub(&b, count, gen_mi_imm(counterOffset));
|
||||
count = gen_mi_udiv32_imm(&b, count, vertexStride);
|
||||
gen_mi_store(&b, gen_mi_reg32(GEN7_3DPRIM_VERTEX_COUNT), count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue