anv/pipeline: Translate vulkan_resource_index to a constant when possible
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Dec 2017 11:18:51 +0000 (03:18 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Dec 2017 23:43:25 +0000 (15:43 -0800)
commit1bce04deb8e62e7fc1c19b1ecc7b6484e33ecf20
treecf0edb10e405b5fa38bcb91d93b1e288dcc15043
parent3b34ed79f1dcc802d87191226a37f5d17cabbbc1
anv/pipeline: Translate vulkan_resource_index to a constant when possible

We want to call brw_nir_analyze_ubo_ranges immedately after
anv_nir_apply_pipeline_layout and it badly wants constants.  We could
run an optimization step and let constant folding do it but that's way
more expensive than needed.  It's really easy to just handle constants
in apply_pipeline_layout.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/anv_nir_apply_pipeline_layout.c