pvr: Fix typo causing seg faults copying immutable samplers

Fixes seg faults in:
  dEQP-VK.binding_model.shader_access.primary_cmd_buf
    .sampler_immutable.no_access.single_descriptor.*
  dEQP-VK.binding_model.shader_access.primary_cmd_buf
    .sampler_immutable.no_access.multiple_contiguous_descriptors.*

It does not fix them. Now they just hit asserts in the compiler.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23357>
This commit is contained in:
Karmjit Mahil 2023-05-18 13:43:11 +01:00 committed by Marge Bot
parent 1021e2b946
commit 817be4b860

View file

@ -541,7 +541,7 @@ VkResult pvr_CreateDescriptorSetLayout(
for (uint32_t j = 0; j < binding->descriptorCount; j++) {
PVR_FROM_HANDLE(pvr_sampler,
sampler,
bindings->pImmutableSamplers[j]);
binding->pImmutableSamplers[j]);
const uint32_t next = j + layout->immutable_sampler_count;
layout->immutable_samplers[next] = sampler;