summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-04-15 15:00:08 -0700
committerMatt Turner <[email protected]>2013-04-17 18:19:34 -0700
commitecdda414d361ab4430fd5747c9217687c1f3d63f (patch)
tree4cf31fc421c7bbb3d02b0fc59e38a1ec817aacc0 /src/mesa/drivers
parent60e4c994884ac10954f341db13a4c9c410c4dd0e (diff)
i965: Check reg.nr for BRW_ARF_NULL instead of reg.file.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 704f219f6f7..a98892b7a6a 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -182,7 +182,7 @@ validate_reg(struct brw_instruction *insn, struct brw_reg reg)
}
if (reg.file == BRW_ARCHITECTURE_REGISTER_FILE &&
- reg.file == BRW_ARF_NULL)
+ reg.nr == BRW_ARF_NULL)
return;
assert(reg.hstride >= 0 && reg.hstride < Elements(hstride_for_reg));