We actually need it there already, we just missed to move it.
Fixes: 66ed9792edb702 ("nv50: Clear nv50_ir_prog_info of dead and codegen specific variables")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5849>
if (info->dbgFlags & NV50_IR_DEBUG_BASIC)
tgsi_dump(tokens, 0);
+ tgsi_scan_shader(tokens, &scan);
+
immd.count = 0;
immd.data = (uint32_t *)MALLOC(scan.immediate_count * 16);
}
unsigned insnCount = 0;
struct tgsi_parse_context parse;
- tgsi_scan_shader(tokens, &scan);
-
insns = (struct tgsi_full_instruction *)MALLOC(scan.num_instructions *
sizeof(insns[0]));
if (!insns)