summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Lima Mitev <elima@igalia.com>2016-05-21 09:24:03 +0200
committerEduardo Lima Mitev <elima@igalia.com>2016-05-21 19:57:31 +0200
commit7dce4793b7fae65a2ecb63681c5096fb2af2eec4 (patch)
tree835d13220977af4add81dc3063a4e477e41b37ee
parent30b93141aac4cca18ca11b00b7124fbad1aee51e (diff)
downloadexternal_mesa3d-7dce4793b7fae65a2ecb63681c5096fb2af2eec4.zip
external_mesa3d-7dce4793b7fae65a2ecb63681c5096fb2af2eec4.tar.gz
external_mesa3d-7dce4793b7fae65a2ecb63681c5096fb2af2eec4.tar.bz2
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>
-rw-r--r--src/intel/vulkan/anv_nir_apply_pipeline_layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c
index ddb099e..6481269 100644
--- a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c
+++ b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c
@@ -163,7 +163,7 @@ lower_tex_deref(nir_tex_instr *tex, nir_deref_var *deref,
* first-class texture source.
*/
tex->src[tex->num_srcs].src_type = src_type;
- nir_instr_rewrite_src(&tex->instr, &tex->src[tex->num_srcs],
+ nir_instr_rewrite_src(&tex->instr, &tex->src[tex->num_srcs].src,
nir_src_for_ssa(index));
tex->num_srcs++;
} else {