mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
pvr: temporary spm tweaks
This enables the legacy SPM program implementation to function with the updated descriptor set code, until it is replaced with NIR/uscgen. Signed-off-by: Ashish Chauhan <ashish.chauhan@imgtec.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
parent
61d5240850
commit
829703e560
1 changed files with 1 additions and 9 deletions
|
|
@ -933,14 +933,6 @@ pvr_spm_init_bgobj_state(struct pvr_device *device,
|
|||
|
||||
consts_buffer_size = PVR_DW_TO_BYTES(info->const_shared_regs);
|
||||
|
||||
/* TODO: Remove this check, along with the pvr_finishme(), once the zeroed
|
||||
* shaders are replaced by the real shaders.
|
||||
*/
|
||||
if (!consts_buffer_size)
|
||||
return VK_SUCCESS;
|
||||
|
||||
pvr_finishme("Remove consts buffer size check");
|
||||
|
||||
result = pvr_bo_alloc(device,
|
||||
device->heaps.general_heap,
|
||||
consts_buffer_size,
|
||||
|
|
@ -1007,7 +999,7 @@ pvr_spm_init_bgobj_state(struct pvr_device *device,
|
|||
uint64_t *mem_ptr_u64 = (uint64_t *)mem_ptr;
|
||||
uint64_t mem_used = 0;
|
||||
|
||||
assert((sizeof(struct pvr_image_descriptor) / sizeof(uint32_t)) ==
|
||||
assert((sizeof(struct pvr_image_descriptor) / sizeof(uint64_t)) ==
|
||||
PVR_IMAGE_DESCRIPTOR_SIZE);
|
||||
mem_ptr_u64 +=
|
||||
i * (sizeof(struct pvr_image_descriptor) / sizeof(uint64_t));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue