mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 11:50:09 +01:00
i965: Fix two broken asserts in brw_eu_emit
These were looking in the wrong field. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
b45d417108
commit
1499619fe6
1 changed files with 2 additions and 2 deletions
|
|
@ -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, ®);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue