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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user