i965/fs: Make the repclear shader support either a uniform or a flat input
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Apr 2016 21:38:42 +0000 (14:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Apr 2016 01:08:50 +0000 (18:08 -0700)
commit3921b64e63db39a3f19ebb8250081ba7ddf843a2
tree288c6eed155c297dcf21c6091f1d29f253056c76
parent061969f9dd0dcaa2cd0c412fedc6ef159dcaf8b0
i965/fs: Make the repclear shader support either a uniform or a flat input

In the Vulkan driver we use a single flat input instead of a uniform
because setting up push constants is more disruptive to the pipeline than
setting up another vertex input.  This uses the number of uniforms as a key
to keep it working for the GL driver.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp