anv: Restrict the number of color regions to those actually written
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jun 2018 01:30:09 +0000 (18:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Aug 2018 01:02:28 +0000 (18:02 -0700)
commit80bc0b728c195517fd40027bd3c63f2483811b9f
tree0452d81257761284fb1bbbbd5c72e42cc836818b
parent4d57e543b8e3bc0c5e0e6ced1f0d171a2cab3b8c
anv: Restrict the number of color regions to those actually written

The back-end compiler emits the number of color writes specified by
wm_prog_key::nr_color_regions regardless of what nir_store_outputs we
have.  Once we've gone through and figured out which render targets
actually exist and are written by the shader, we should restrict the key
to avoid extra RT write messages.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/intel/vulkan/anv_pipeline.c