intel/fs: Use helper for discard sample mask flag subregister number.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 4 Jan 2020 22:32:09 +0000 (14:32 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Feb 2020 22:31:48 +0000 (14:31 -0800)
commit083fd96a97d992b8233587f4626c4d433fbd4045
tree4c4b57c316d3d9b94b7582c499969c916fa3eda9
parenta6bc11a7893a75aebe7ba1888877dffa9fe0814a
intel/fs: Use helper for discard sample mask flag subregister number.

Use it instead of hard-coding f0.1 for the sample mask of programs
that use discard.  This will make the task easier when we replace f0.1
with another flag register location in order to support discard with
SIMD32 shaders.

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