diff options
author | Lionel Landwerlin <[email protected]> | 2018-12-19 17:52:06 +0000 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2018-12-28 16:48:40 +0000 |
commit | 7ab8c8062510ef1b3f01bef0e3b16c60ea311857 (patch) | |
tree | 9d238d53f8a4f435c0d29109463e1f6a208546be /src | |
parent | f3ed4a058d99184a0b032d9d3e21d732ba530d8e (diff) |
intel/aub_viewer: fix shader view
Not decoding the shader at the right offset.
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/tools/aubinator_viewer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/tools/aubinator_viewer.cpp b/src/intel/tools/aubinator_viewer.cpp index 47eba274dac..fe936154381 100644 --- a/src/intel/tools/aubinator_viewer.cpp +++ b/src/intel/tools/aubinator_viewer.cpp @@ -392,7 +392,9 @@ new_shader_window(struct aub_mem *mem, uint64_t address, const char *desc) if (shader_bo.map) { FILE *f = open_memstream(&window->shader, &window->shader_size); if (f) { - gen_disasm_disassemble(context.file->disasm, shader_bo.map, 0, f); + gen_disasm_disassemble(context.file->disasm, + (const uint8_t *) shader_bo.map + + (address - shader_bo.addr), 0, f); fclose(f); } } |