[Mesa-dev] [PATCH 3/7] i965: Disassemble UV types, not UB types.

Kenneth Graunke kenneth at whitecape.org
Tue Dec 10 02:33:14 PST 2013


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 at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_disasm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 92fc889..729a614 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -901,8 +901,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");
-- 
1.8.4.4



More information about the mesa-dev mailing list