i965/fs: Fail the shader compile instead of asserting when we can't spill
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Sep 2016 21:08:02 +0000 (14:08 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 9 Sep 2016 03:53:01 +0000 (20:53 -0700)
commit175ac629be1396fb8566836e32961a22fc5cca21
tree5febc38751fbcc643b9cf0e7a55ab790549d37b1
parent88a2a2e05302179c59e257533ed77d2d0a6a5021
i965/fs: Fail the shader compile instead of asserting when we can't spill

Blorp doesn't handle spilling so we set allow_spilling to false in that
case.  The blorp 16x MSAA resolve shader spills in 16-wide but not 8-wide.
This commit makes it so that we fail the 16-wide compile and successfully
fall back to 8-wide instead of just assert-failing when trying to compile
the 16-wide shader.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs.cpp