From 1499619fe6815510d4448f0e297d097f20a0acf3 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 6 Jul 2014 20:11:05 +1200 Subject: [PATCH] i965: Fix two broken asserts in brw_eu_emit These were looking in the wrong field. Signed-off-by: Chris Forbes Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_eu_emit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index cd5bc9f2af0..3f00e4dc4a0 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -314,7 +314,7 @@ brw_set_src0(struct brw_compile *p, brw_inst *inst, struct brw_reg reg) { struct brw_context *brw = p->brw; - if (reg.type != BRW_ARCHITECTURE_REGISTER_FILE) + if (reg.file != BRW_ARCHITECTURE_REGISTER_FILE) assert(reg.nr < 128); gen7_convert_mrf_to_grf(p, ®); @@ -455,7 +455,7 @@ brw_set_src1(struct brw_compile *p, brw_inst *inst, struct brw_reg reg) const struct brw_context *brw = p->brw; assert(reg.file != BRW_MESSAGE_REGISTER_FILE); - if (reg.type != BRW_ARCHITECTURE_REGISTER_FILE) + if (reg.file != BRW_ARCHITECTURE_REGISTER_FILE) assert(reg.nr < 128); gen7_convert_mrf_to_grf(p, ®); -- 2.30.2