From: Jason Ekstrand Date: Tue, 9 Feb 2016 23:32:21 +0000 (-0800) Subject: anv/apply_pipeline_layout: Use the new const_index helpers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e15f7551d11f435e13d67a4e0066d1bab44b47ed;p=mesa.git anv/apply_pipeline_layout: Use the new const_index helpers --- 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);