mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
339a1a4d73
commit
2b1859cd06
1 changed files with 2 additions and 1 deletions
|
|
@ -32,9 +32,10 @@ cost_instr(agx_instr *I)
|
||||||
/* TODO: Better heuristic */
|
/* TODO: Better heuristic */
|
||||||
switch (I->op) {
|
switch (I->op) {
|
||||||
case AGX_OPCODE_DEVICE_LOAD:
|
case AGX_OPCODE_DEVICE_LOAD:
|
||||||
|
return 10;
|
||||||
case AGX_OPCODE_TEXTURE_LOAD:
|
case AGX_OPCODE_TEXTURE_LOAD:
|
||||||
case AGX_OPCODE_TEXTURE_SAMPLE:
|
case AGX_OPCODE_TEXTURE_SAMPLE:
|
||||||
return 10;
|
return 50;
|
||||||
default:
|
default:
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue