summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-10 12:49:10 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-10 12:49:10 +0000
commit10e36edabe42e52f7862f66147d4433e8947ebc2 (patch)
tree2484c741dc671e32a9d5df0ffbf22014b68e3a1d
parent5a9d82c6d5ad6d4e9b48a74dd4a5226babee81aa (diff)
decode: Fix interpretation of i915 8bit formats
2/3 are reserved with the correct values for A8/I8 being 4/5 respectively. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tools/intel_decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/intel_decode.c b/tools/intel_decode.c
index 71625817..53951d49 100644
--- a/tools/intel_decode.c
+++ b/tools/intel_decode.c
@@ -1357,8 +1357,8 @@ decode_3d_1d(uint32_t *data, int count,
switch ((dword>>3) & 0xf) {
case 0: format = "I"; break;
case 1: format = "L"; break;
- case 2: format = "A"; break;
- case 3: format = " mono"; break; }
+ case 4: format = "A"; break;
+ case 5: format = " mono"; break; }
break;
case 2:
type = "16b";