nv50/ir/tgsi: move call to tgsi_scan_shader inside Source constructor
We actually need it there already, we just missed to move it.
Fixes: 66ed9792ed
("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>
This commit is contained in:
parent
c905e48593
commit
033e933348
|
@ -1061,6 +1061,8 @@ Source::Source(struct nv50_ir_prog_info *info, nv50_ir::Program *prog)
|
|||
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);
|
||||
}
|
||||
|
@ -1079,8 +1081,6 @@ bool Source::scanSource()
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue