mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
agx: Note that textures clobber even masked
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20446>
This commit is contained in:
parent
ddbec45b6f
commit
7284e4967c
1 changed files with 4 additions and 1 deletions
|
|
@ -52,9 +52,12 @@ agx_write_registers(agx_instr *I, unsigned d)
|
|||
assert(1 <= I->channels && I->channels <= 4);
|
||||
return I->channels * size;
|
||||
|
||||
case AGX_OPCODE_DEVICE_LOAD:
|
||||
case AGX_OPCODE_TEXTURE_LOAD:
|
||||
case AGX_OPCODE_TEXTURE_SAMPLE:
|
||||
/* Even when masked out, these clobber 4 registers */
|
||||
return 4 * size;
|
||||
|
||||
case AGX_OPCODE_DEVICE_LOAD:
|
||||
case AGX_OPCODE_LD_TILE:
|
||||
return util_bitcount(I->mask) * size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue