pvr: Fix dynamic desc offset storage
authorKarmjit Mahil <Karmjit.Mahil@imgtec.com>
Tue, 19 Sep 2023 12:35:50 +0000 (13:35 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sun, 24 Sep 2023 14:00:57 +0000 (14:00 +0000)
commitfeafb8a256b67d816c1cb8fdf258c75a29245c3f
tree1d298f1e94c45538d86a46c39e7395e26c064b86
parentbf17e4fe330379408ebaed7a2509cd603edd8917
pvr: Fix dynamic desc offset storage

The index at which the dynamic descriptor offsets were being
stored was incorrect, leading to some offsets not being stored and
thus `0` being applied as the offset to the descriptors instead.

dEQP test fixed:
  dEQP-VK.binding_model.shader_access.{primary,secondary}_cmd_buf
    .uniform_buffer_dynamic
    .{vertex,fragment,compute,vertex_fragment}
    .multiple_discontiguous_descriptor_sets
    .*_descriptor.offset_view_{,non}zero_dynamic_nonzero

Fixes: aa791961a82e ("pvr: Add support for dynamic buffers descriptors")
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/25320>
src/imagination/vulkan/pvr_cmd_buffer.c