anv/pipeline: Fix a typo in the pipeline layout code
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Feb 2016 21:54:15 +0000 (13:54 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Feb 2016 21:55:57 +0000 (13:55 -0800)
src/intel/vulkan/anv_nir_apply_pipeline_layout.c

index 4be630bcbe86df8f10ae4f5f7e2d98341aa08075..e745bf661ee8f77daea7fffebc223418c5b17f73 100644 (file)
@@ -194,7 +194,7 @@ lower_tex(nir_tex_instr *tex, struct apply_pipeline_layout_state *state)
    if (tex->sampler) {
       unsigned set = tex->sampler->var->data.descriptor_set;
       unsigned binding = tex->sampler->var->data.binding;
-      tex->sampler_index = state->set[set].surface_offsets[binding];
+      tex->sampler_index = state->set[set].sampler_offsets[binding];
       lower_tex_deref(tex, tex->sampler, &tex->sampler_index,
                       nir_tex_src_sampler_offset, state);
    }