From 8e2fda411a4f822600e875b05ac744c1fd3b2620 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 14 Sep 2018 21:19:21 +0100 Subject: [PATCH] intel/aub_viewer: fix shader get_bo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Instruction addresses are always in ppgtt space. Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli --- src/intel/tools/aubinator_viewer.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/intel/tools/aubinator_viewer.cpp b/src/intel/tools/aubinator_viewer.cpp index 085ef75555c..47eba274dac 100644 --- a/src/intel/tools/aubinator_viewer.cpp +++ b/src/intel/tools/aubinator_viewer.cpp @@ -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) { -- 2.30.2