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:
Vasily Khoruzhick 2025-02-21 23:24:59 -08:00 committed by Marge Bot
parent 8905ee3a03
commit 0471b438d6

View file

@ -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)