mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
i965/emit: Assert that src1 is not an MRF after doing the MRF->GRF conversion
When emitting texturing from indirect texture units, we need to be able to scratch around in the header message. Since we only do this for >= HSW, this is ok since there are no MRFs. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
7de8a3e13e
commit
6be2434031
1 changed files with 1 additions and 1 deletions
|
|
@ -453,12 +453,12 @@ void
|
|||
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.file != BRW_ARCHITECTURE_REGISTER_FILE)
|
||||
assert(reg.nr < 128);
|
||||
|
||||
gen7_convert_mrf_to_grf(p, ®);
|
||||
assert(reg.file != BRW_MESSAGE_REGISTER_FILE);
|
||||
|
||||
validate_reg(brw, inst, reg);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue