intel/fs/gen7+: Swap sample mask flag register and FIND_LIVE_CHANNEL temporary.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 4 Jan 2020 23:48:07 +0000 (15:48 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Feb 2020 22:31:48 +0000 (14:31 -0800)
commita792e11f5ccb28f5d2430008d462c79888a077c3
treebb2e79dc0fb8fa5adb0a42de7e61afaef974abac
parent083fd96a97d992b8233587f4626c4d433fbd4045
intel/fs/gen7+: Swap sample mask flag register and FIND_LIVE_CHANNEL temporary.

FIND_LIVE_CHANNEL was using f1.0-f1.1 as temporary flag register on
Gen7, instead use f0.0-f0.1.  In order to avoid collision with the
discard sample mask, move the latter to f1.0-f1.1.  This makes room
for keeping track of the sample mask of the second half of SIMD32
programs that use discard.

Note that some MOVs of the sample mask into f1.0 become redundant now
in lower_surface_logical_send() and lower_a64_logical_send().

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