i965: Disassemble UV types, not UB types.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Dec 2013 09:21:54 +0000 (01:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 Dec 2013 20:34:36 +0000 (12:34 -0800)
UB types have never been supported as immediates.  On Gen4-5, register
encoding 4 is "Reserved."  On Gen6+, it means UV.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_disasm.c

index ade7e7fcc54875c6acf6e61ee1e186bb73751383..4c435beaa3bb7fb3e3015704070da23af0331145 100644 (file)
@@ -900,8 +900,8 @@ static int imm (FILE *file, unsigned type, struct brw_instruction *inst) {
     case BRW_REGISTER_TYPE_W:
        format (file, "%dW", (int16_t) inst->bits3.d);
        break;
-    case BRW_REGISTER_TYPE_UB:
-       format (file, "0x%02xUB", (int8_t) inst->bits3.ud);
+    case BRW_REGISTER_TYPE_UV:
+       format (file, "0x%08xUV", inst->bits3.ud);
        break;
     case BRW_REGISTER_TYPE_VF:
        format (file, "Vector Float");