anv/apply_pipeline_layout: Use the new const_index helpers
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 Feb 2016 23:32:21 +0000 (15:32 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 10 Feb 2016 00:32:38 +0000 (16:32 -0800)
src/vulkan/anv_nir_apply_pipeline_layout.c

index 00ed7766acb70eab096092a7bdf1b007bb2d3668..61dcf1d4c1b8ca594cba771225b4c8d3b26a6c9b 100644 (file)
@@ -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);