anv/pipeline: Call nir_lower_system_valaues after brw_preprocess_nir
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 2 Oct 2017 16:53:50 +0000 (09:53 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 25 Oct 2017 23:14:09 +0000 (16:14 -0700)
commit279f8fb69cf68d05287e14f60cf67fc025643bc4
treeaba9123b46f1a80d2ec447fac9527057b14b037a
parentafa0ddb81e693678069c630751e2091eea796937
anv/pipeline: Call nir_lower_system_valaues after brw_preprocess_nir

We currently have a bug where nir_lower_system_values gets called before
nir_lower_var_copies so it will miss any system value uses which come
from a copy_var intrinsic.  Moving it to after brw_preprocess_nir fixes
this problem.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/vulkan/anv_pipeline.c