mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
ir3: Allocate disasm_info under variant
This shouldn't matter much because it gets stolen later, but the shader is going away. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16147>
This commit is contained in:
parent
21e3dd57d3
commit
4509b49fb8
1 changed files with 2 additions and 2 deletions
|
|
@ -252,12 +252,12 @@ assemble_variant(struct ir3_shader_variant *v)
|
|||
fprintf(stream,
|
||||
"Native code%s for unnamed %s shader %s with sha1 %s:\n",
|
||||
shader_overridden ? " (overridden)" : "", ir3_shader_stage(v),
|
||||
v->shader->nir->info.name, sha1buf);
|
||||
v->name, sha1buf);
|
||||
ir3_shader_disasm(v, v->bin, stream);
|
||||
|
||||
fclose(stream);
|
||||
|
||||
v->disasm_info.disasm = ralloc_size(v->shader, stream_size + 1);
|
||||
v->disasm_info.disasm = ralloc_size(v, stream_size + 1);
|
||||
memcpy(v->disasm_info.disasm, stream_data, stream_size);
|
||||
v->disasm_info.disasm[stream_size] = 0;
|
||||
free(stream_data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue