mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
intel/aub_viewer: fix shader get_bo
Instruction addresses are always in ppgtt space. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
e260493f2a
commit
8e2fda411a
1 changed files with 2 additions and 6 deletions
|
|
@ -387,12 +387,8 @@ new_shader_window(struct aub_mem *mem, uint64_t address, const char *desc)
|
|||
window->base.display = display_shader_window;
|
||||
window->base.destroy = destroy_shader_window;
|
||||
|
||||
struct gen_batch_decode_bo shader_bo;
|
||||
if (mem->pml4)
|
||||
shader_bo = aub_mem_get_ppgtt_bo(mem, address);
|
||||
else
|
||||
shader_bo = aub_mem_get_ggtt_bo(mem, address);
|
||||
|
||||
struct gen_batch_decode_bo shader_bo =
|
||||
aub_mem_get_ppgtt_bo(mem, address);
|
||||
if (shader_bo.map) {
|
||||
FILE *f = open_memstream(&window->shader, &window->shader_size);
|
||||
if (f) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue