freedreno/rddecompiler: Use fd_dev_gen to pass gpu_id to ir3 disasm
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25677>
This commit is contained in:

committed by
Marge Bot

parent
e41bc40571
commit
0338b14657
@@ -189,7 +189,7 @@ decompile_shader(const char *name, uint32_t regbase, uint32_t *dwords, int level
|
||||
size_t stream_size = 0;
|
||||
FILE *stream = open_memstream(&stream_data, &stream_size);
|
||||
|
||||
try_disasm_a3xx(buf, sizedwords, 0, stream, dev_id.gpu_id);
|
||||
try_disasm_a3xx(buf, sizedwords, 0, stream, fd_dev_gen(&dev_id) * 100);
|
||||
fclose(stream);
|
||||
|
||||
printlvl(level, "{\n");
|
||||
@@ -512,7 +512,7 @@ emit_header()
|
||||
"int main(int argc, char **argv)\n"
|
||||
"{\n"
|
||||
"\tstruct replay_context ctx;\n"
|
||||
"\tstruct fd_dev_id dev_id = {%u, %" PRIu64 "};\n"
|
||||
"\tstruct fd_dev_id dev_id = {%u, 0x%" PRIx64 "};\n"
|
||||
"\treplay_context_init(&ctx, &dev_id, argc, argv);\n"
|
||||
"\tstruct cmdstream *cs = ctx.submit_cs;\n\n",
|
||||
dev_id.gpu_id, dev_id.chip_id);
|
||||
|
Reference in New Issue
Block a user