anv/nir_apply_pipeline_layout: Pass the nir_src from the nir_tex_src
authorEduardo Lima Mitev <elima@igalia.com>
Sat, 21 May 2016 07:24:03 +0000 (09:24 +0200)
committerEduardo Lima Mitev <elima@igalia.com>
Sat, 21 May 2016 17:57:31 +0000 (19:57 +0200)
commit7dce4793b7fae65a2ecb63681c5096fb2af2eec4
tree835d13220977af4add81dc3063a4e477e41b37ee
parent30b93141aac4cca18ca11b00b7124fbad1aee51e
anv/nir_apply_pipeline_layout: Pass the nir_src from the nir_tex_src

nir_instr_rewrite_src() expects a nir_src and it is currently being fed a
nir_tex_src. This will crash something.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_nir_apply_pipeline_layout.c