[Mesa-dev] [PATCH] i965/emit: Assert that src1 is not an MRF after doing the MRF->GRF conversion

Kenneth Graunke kenneth at whitecape.org
Thu Jan 22 15:57:05 PST 2015


On Thursday, January 22, 2015 03:51:28 PM Jason Ekstrand wrote:
> 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.
> ---
>  src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
> index 39b2022..57161e2 100644
> --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
> +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
> @@ -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, &reg);
> +   assert(reg.file != BRW_MESSAGE_REGISTER_FILE);
>  
>     validate_reg(brw, inst, reg);

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150122/3a4a7719/attachment.sig>


More information about the mesa-dev mailing list