intel/aub_viewer: fix dynamic state printing
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 9 Nov 2018 16:49:12 +0000 (16:49 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 16 Nov 2018 11:40:14 +0000 (11:40 +0000)
Identical fix to :

commit cbd4bc1346f7397242e157bb66099b950a8c5643
Author: Jason Ekstrand <jason.ekstrand@intel.com>
Date:   Fri Aug 24 16:04:03 2018 -0500

    intel/batch_decoder: Fix dynamic state printing

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Toni Lönnberg <toni.lonnberg@intel.com>
src/intel/tools/aubinator_viewer_decoder.cpp

index 8aeddaf432c747cf98ece07c9e546c0557b297ef..fd3bc739bd789385d48acbbac9b52da8cbcb4e4d 100644 (file)
@@ -651,10 +651,10 @@ decode_dynamic_state_pointers(struct aub_viewer_decode_ctx *ctx,
 
    for (int i = 0; i < count; i++) {
       ImGui::Text("%s %d", struct_type, i);
-      aub_viewer_print_group(ctx, state, state_offset, state_map);
+      aub_viewer_print_group(ctx, state, state_addr, state_map);
 
       state_addr += state->dw_length * 4;
-      state_map += state->dw_length;
+      state_map += state->dw_length * 4;
    }
 }