[PATCH] intel/decode: VERTEX_ELEMENT_STATE, 1 means valid

Ben Widawsky ben at bwidawsk.net
Sun Jun 24 20:41:58 PDT 2012


The logic seemed to be inverse to me.

Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 intel/intel_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/intel/intel_decode.c b/intel/intel_decode.c
index c9bfee4..eac48c3 100644
--- a/intel/intel_decode.c
+++ b/intel/intel_decode.c
@@ -3390,7 +3390,7 @@ decode_3d_965(struct drm_intel_decode *ctx)
 				  "src offset 0x%04x bytes\n",
 				  data[i] >> (IS_GEN6(devid) ? 26 : 27),
 				  data[i] & (1 << (IS_GEN6(devid) ? 25 : 26)) ?
-				  "" : "in", (data[i] >> 16) & 0x1ff,
+				  "in" : "", (data[i] >> 16) & 0x1ff,
 				  data[i] & 0x07ff);
 			i++;
 			instr_out(ctx, i, "(%s, %s, %s, %s), "
-- 
1.7.11



More information about the dri-devel mailing list