intel/aub_viewer: fix shader get_bo
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 14 Sep 2018 20:19:21 +0000 (21:19 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 28 Dec 2018 16:48:08 +0000 (16:48 +0000)
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>
src/intel/tools/aubinator_viewer.cpp

index 085ef75555c88374835270957048d73b38acf0bf..47eba274daca3f190c3d64c4f1db0f5b93bf11c7 100644 (file)
@@ -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) {