mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
lima: ppir: assign an index for discard block
Discard block is the only block that we generate internally, and it currently just gets an index of 0 which collides with the very first block. It is not an issue for compiler, but an eyesore for debug output for a program with discard_if. Assign INT_MAX index for it. Reviewed-by: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33636>
This commit is contained in:
parent
8905ee3a03
commit
0471b438d6
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ static bool ppir_emit_discard_block(ppir_compiler *comp)
|
|||
|
||||
comp->discard_block = block;
|
||||
block->comp = comp;
|
||||
block->index = INT_MAX;
|
||||
|
||||
discard = ppir_node_create(block, ppir_op_discard, -1, 0);
|
||||
if (discard)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue