summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-09 15:32:21 -0800
committerJason Ekstrand <[email protected]>2016-02-09 16:32:38 -0800
commite15f7551d11f435e13d67a4e0066d1bab44b47ed (patch)
tree6cec685cac9ce84dc75b898e5387c630b749882d /src/vulkan
parent768bd7f272e0dfd8cc17c49750fe8aaab78bb420 (diff)
anv/apply_pipeline_layout: Use the new const_index helpers
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/anv_nir_apply_pipeline_layout.c4
1 files 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);