[Mesa-dev] [PATCH 10/32] i965/fs: Remove logic to keep track of MRF metadata in lower_load_payload().

Francisco Jerez currojerez at riseup.net
Fri Feb 6 16:01:04 PST 2015

Hey Matt,

Matt Turner <mattst88 at gmail.com> writes:

> On Fri, Feb 6, 2015 at 6:42 AM, Francisco Jerez <currojerez at riseup.net> wrote:
>> MRFs cannot be read from anyway so they cannot possibly be a valid
>> source of LOAD_PAYLOAD.
>> ---
> The function only seems to test inst->dst.file == MRF. I don't see any
> code for handling MRF sources. What am I missing?

That test is for "handling" MRF sources -- More precisely, it's
collecting the writemask and half flags for MRF writes, which can only
possibly be useful if we're going to use them later on to read something
out of an MRF into a payload, which we shouldn't be doing in the first

Aside from simplifying the function somewhat, that allows us to drop the
16 register gap reserved for MRFs at register offset zero, what will
allow us to drop the vgrf_to_reg[] offset calculation completely (also
in split_virtual_grfs()) in a future patch (not sent for review yet).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150207/9bc97fc6/attachment.sig>

More information about the mesa-dev mailing list