i965/disasm: Properly disassemble all32h/any32h align1 predicates.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 29 Jun 2014 01:24:05 +0000 (18:24 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jun 2014 21:05:28 +0000 (14:05 -0700)
While we're adding things, use symbolic constants rather than magic
numbers.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_disasm.c

index e40938ab9e8fa38cf6be8914b399a5a7b9e56d04..26b60b6e794aea862214d697f2ce575d0e118cf5 100644 (file)
@@ -231,17 +231,19 @@ static const char *const pred_ctrl_align16[16] = {
 };
 
 static const char *const pred_ctrl_align1[16] = {
-   [1] = "",
-   [2] = ".anyv",
-   [3] = ".allv",
-   [4] = ".any2h",
-   [5] = ".all2h",
-   [6] = ".any4h",
-   [7] = ".all4h",
-   [8] = ".any8h",
-   [9] = ".all8h",
-   [10] = ".any16h",
-   [11] = ".all16h",
+   [BRW_PREDICATE_NORMAL]        = "",
+   [BRW_PREDICATE_ALIGN1_ANYV]   = ".anyv",
+   [BRW_PREDICATE_ALIGN1_ALLV]   = ".allv",
+   [BRW_PREDICATE_ALIGN1_ANY2H]  = ".any2h",
+   [BRW_PREDICATE_ALIGN1_ALL2H]  = ".all2h",
+   [BRW_PREDICATE_ALIGN1_ANY4H]  = ".any4h",
+   [BRW_PREDICATE_ALIGN1_ALL4H]  = ".all4h",
+   [BRW_PREDICATE_ALIGN1_ANY8H]  = ".any8h",
+   [BRW_PREDICATE_ALIGN1_ALL8H]  = ".all8h",
+   [BRW_PREDICATE_ALIGN1_ANY16H] = ".any16h",
+   [BRW_PREDICATE_ALIGN1_ANY16H] = ".all16h",
+   [BRW_PREDICATE_ALIGN1_ANY32H] = ".any32h",
+   [BRW_PREDICATE_ALIGN1_ANY32H] = ".all32h",
 };
 
 static const char *const thread_ctrl[4] = {