From e15f7551d11f435e13d67a4e0066d1bab44b47ed Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 9 Feb 2016 15:32:21 -0800 Subject: [PATCH] anv/apply_pipeline_layout: Use the new const_index helpers --- src/vulkan/anv_nir_apply_pipeline_layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/anv_nir_apply_pipeline_layout.c b/src/vulkan/anv_nir_apply_pipeline_layout.c index 00ed7766acb..61dcf1d4c1b 100644 --- a/src/vulkan/anv_nir_apply_pipeline_layout.c +++ b/src/vulkan/anv_nir_apply_pipeline_layout.c @@ -114,8 +114,8 @@ lower_res_index_intrinsic(nir_intrinsic_instr *intrin, b->cursor = nir_before_instr(&intrin->instr); - uint32_t set = intrin->const_index[0]; - uint32_t binding = intrin->const_index[1]; + uint32_t set = nir_intrinsic_desc_set(intrin); + uint32_t binding = nir_intrinsic_binding(intrin); uint32_t surface_index = get_surface_index(set, binding, state); -- 2.30.2