i965/fs Add a wm_prog_data bit for has_side_effects
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Jun 2016 01:46:30 +0000 (18:46 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Jun 2016 02:29:28 +0000 (19:29 -0700)
commit3fb289f957a8a27349a6f7df03983f92d9b6cf64
tree79ec3a842d02baf688927291277c5d45f7249358
parent4d3b8318a714c470d12636a41b08bd60688f6c3b
i965/fs Add a wm_prog_data bit for has_side_effects

This is more accurate than calling
_mesa_active_fragment_shader_has_side_effects because it looks at whether
or not the SSBOs, images, or atomic buffers are actually written rather
than just existing in the program.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_compiler.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp