agx: tweak jmp_exec_none heuristic

to make sure border colour code is skipped.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30633>
This commit is contained in:
Alyssa Rosenzweig 2024-08-04 11:32:12 -04:00
parent 339a1a4d73
commit 2b1859cd06

View file

@ -32,9 +32,10 @@ cost_instr(agx_instr *I)
/* TODO: Better heuristic */
switch (I->op) {
case AGX_OPCODE_DEVICE_LOAD:
return 10;
case AGX_OPCODE_TEXTURE_LOAD:
case AGX_OPCODE_TEXTURE_SAMPLE:
return 10;
return 50;
default:
return 1;
}