panfrost/mdg/disasm: Print raw varying_parameters
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 20 Apr 2019 23:37:14 +0000 (23:37 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 24 Apr 2019 02:22:31 +0000 (02:22 +0000)
The semantics of this field are not well understood; it is better to
print it unconditionally along with the other unknown state, rather than
silently eat the value. Without this change, some critical state was
being lost in some shaders (notably, the offset for load/store
scratchpad intructions found in shaders that spill registers.)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/midgard/disassemble.c

index e9ff38083188b60a386055137e237c52e562c416..21a01aa9b0eecd0fdd693100739c9a7becce80b8 100644 (file)
@@ -759,7 +759,7 @@ print_load_store_instr(uint64_t data,
 
         print_swizzle(word->swizzle);
 
-        printf(", 0x%X\n", word->unknown);
+        printf(", 0x%X /* %X */\n", word->unknown, word->varying_parameters);
 }
 
 static void