pvr: Fix PDS temps allocation on fragment stage
authorKarmjit Mahil <Karmjit.Mahil@imgtec.com>
Thu, 18 May 2023 16:02:43 +0000 (17:02 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Jun 2023 18:01:02 +0000 (18:01 +0000)
commit51db63538c130a048d4bd6b19f078f2a67479baf
tree55c8d1af5dc9399e4d177e2910c1e551f4c82076
parent8809758fbc1a3ed77c21e01a3a800094a5b89c05
pvr: Fix PDS temps allocation on fragment stage

Previously the USC temps count was incorrectly being used for the
PDS temps count.

It was causing:
  csbgen/pvr_packet_helpers.h:79:
    __pvr_uint: Assertion `v <= max' failed.

This fixes the assert being hit on:
  dEQP-VK.ubo.random.basic_arrays.2
  dEQP-VK.ubo.random.all_shared_buffer.3
  dEQP-VK.ubo.random.all_shared_buffer.48
  dEQP-VK.ubo.random.all_out_of_order_offsets.3

This does not fully fix the tests though.

Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Matt Coster <matt.coster@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23356>
src/imagination/vulkan/pvr_pipeline.c