intel/fs: Split fetch_payload_reg() into separate helper for barycentrics.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 3 Jan 2020 22:41:15 +0000 (14:41 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 17 Jan 2020 21:22:51 +0000 (13:22 -0800)
commit44d7d66adc6a027eb9f88dae15390c2ad9a70ad4
tree74d55d9c8ca030377d6bdaf6ca2b407a2c888a03
parent9c9e80103ca2477d71e96750232da26028b4973d
intel/fs: Split fetch_payload_reg() into separate helper for barycentrics.

We're about to change the layout of barycentric vectors, which will
involve permuting the GRFs of barycentrics fetched from the thread
payload.  Make room for this in a function separate from the generic
fetch_payload_reg(), since the permutation will only be applicable to
barycentric vectors.  This allows simplifying fetch_payload_reg(),
since there was no need for handling multiple-component payload
registers except for barycentrics.

This causes some minor shader-db noise due to the new helper emitting
a LOAD_PAYLOAD instruction unconditionally, but it will be cleaned up
shortly.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_visitor.cpp