mesa/src/imagination/vulkan
Frank Binns f1580acefb pvr: only share scratch buffers when they're the required size
When sharing scratch buffers across framebuffers, it reallocates the scratch
buffer to ensure the smallest scratch buffer is always in use. However, the
check to do this meant that it was possible to end up with a scratch buffer that
was too small, leading to page faults or memory corruption.

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
2025-09-16 18:26:10 +00:00
..
pds pvr: Enable PDS_DDMADT 2025-09-16 18:26:10 +00:00
usc pvr: drop legacy rogue compiler 2025-09-16 18:26:10 +00:00
winsys pvr: correctly return core count for pvrsrvkm 2025-09-16 18:26:10 +00:00
meson.build pvr: drop legacy rogue compiler 2025-09-16 18:26:10 +00:00
pvr_blit.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
pvr_blit.h pvr: Publicise some static functions from pvr_blit.c 2023-06-02 14:43:24 +00:00
pvr_bo.c pvr: Remove PVR_WINSYS_BO_FLAG_ZERO_ON_ALLOC flag 2023-09-06 12:19:46 +00:00
pvr_bo.h pvr: Remove PVR_WINSYS_BO_FLAG_ZERO_ON_ALLOC flag 2023-09-06 12:19:46 +00:00
pvr_border.c pvr: Cleanup compressed border colour support 2025-09-16 18:26:10 +00:00
pvr_border.h pvr: clarify image/sampler state word packing 2025-07-08 23:10:53 +00:00
pvr_clear.c pvr: fix logic for setting vdm instance count present 2025-09-16 18:26:10 +00:00
pvr_clear.h pvr: drop PVRX macro 2024-11-29 15:14:11 +00:00
pvr_cmd_buffer.c pvr: determine rt layers based on rta support 2025-09-16 18:26:10 +00:00
pvr_common.h pvr, pco: initial texture gather support with gather sampler 2025-09-16 18:26:10 +00:00
pvr_csb.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
pvr_csb.h pvr: drop PVRX macro 2024-11-29 15:14:11 +00:00
pvr_csb_enum_helpers.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
pvr_descriptor_set.c pvr: sampler and sampled image descriptor support 2025-09-16 18:26:10 +00:00
pvr_device.c pvr: Feature support TPU_PARALLEL_INSTANCES 2025-09-16 18:26:10 +00:00
pvr_dump_bo.c pvr: Return VkResult from winsys buffer_map operation 2023-05-18 15:56:59 +00:00
pvr_dump_bo.h pvr: debug: Add "cs" debug option to dump control stream on job submit 2022-11-25 16:42:55 +00:00
pvr_dump_csb.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
pvr_formats.c pvr: Cleanup compressed border colour support 2025-09-16 18:26:10 +00:00
pvr_formats.h pvr: Cleanup compressed border colour support 2025-09-16 18:26:10 +00:00
pvr_hardcode.c pvr: drop legacy rogue compiler 2025-09-16 18:26:10 +00:00
pvr_hardcode.h pvr: drop legacy rogue compiler 2025-09-16 18:26:10 +00:00
pvr_hw_pass.c pvr: Add support for gpu multicore MC1 configurations 2025-09-16 18:26:10 +00:00
pvr_hw_pass.h pvr: fix spm-related renderpass hwr 2025-09-16 18:26:10 +00:00
pvr_image.c pvr: initial texture/sampler driver support 2025-09-16 18:26:08 +00:00
pvr_job_common.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
pvr_job_common.h pvr: minor vulkan driver formatting fixes 2024-10-23 16:47:33 +00:00
pvr_job_compute.c pvr: Add support for gpu multicore MC1 configurations 2025-09-16 18:26:10 +00:00
pvr_job_compute.h pvr: Use common queue submit implementation 2023-02-28 21:39:49 +00:00
pvr_job_context.c pvr: Add support for gpu multicore MC1 configurations 2025-09-16 18:26:10 +00:00
pvr_job_context.h pvr, pco: simple end-of-tile/render nir shader gen 2025-09-16 18:26:10 +00:00
pvr_job_render.c pvr: Implement WA BRN_72463 2025-09-16 18:26:10 +00:00
pvr_job_render.h pvr: drop PVRX macro 2024-11-29 15:14:11 +00:00
pvr_job_transfer.c pvr, pco: simple end-of-tile/render nir shader gen 2025-09-16 18:26:10 +00:00
pvr_job_transfer.h pvr: Add support to process transfer and blit cmds 2023-04-19 11:01:05 +00:00
pvr_pass.c pvr: split out missing output register write handling into separate function 2025-09-16 18:26:10 +00:00
pvr_pipeline.c pvr: drop legacy rogue compiler 2025-09-16 18:26:10 +00:00
pvr_private.h pvr: Remove shareds_dest_offset from load_op 2025-09-16 18:26:10 +00:00
pvr_query.c pvr: fix pvr_CmdResetQueryPool barriers 2025-09-16 18:26:09 +00:00
pvr_query_compute.c pvr: temporarily tweak support required for query programs 2025-09-16 18:26:09 +00:00
pvr_queue.c pvr: fix pvr_CmdResetQueryPool barriers 2025-09-16 18:26:09 +00:00
pvr_robustness.c pvr: clang-format fixes 2023-07-13 10:23:32 +00:00
pvr_robustness.h pvr: Add robustness buffer support 2023-03-27 18:36:32 +00:00
pvr_spm.c pvr: only share scratch buffers when they're the required size 2025-09-16 18:26:10 +00:00
pvr_spm.h pvr: Compile SPM EOT shader 2023-07-14 10:45:49 +00:00
pvr_tex_state.c pvr: initial texture/sampler driver support 2025-09-16 18:26:08 +00:00
pvr_tex_state.h pvr: initial texture/sampler driver support 2025-09-16 18:26:08 +00:00
pvr_transfer_frag_store.c pvr, pco: temporarily add legacy tq shader gen code 2025-09-16 18:26:09 +00:00
pvr_transfer_frag_store.h pvr, pco: Add new compiler framework and shader gen stubs 2024-11-29 15:14:10 +00:00
pvr_usc.c pvr: Remove shareds_dest_offset from load_op 2025-09-16 18:26:10 +00:00
pvr_usc.h pvr, pco: simple end-of-tile/render nir shader gen 2025-09-16 18:26:10 +00:00
pvr_wsi.c vulkan/wsi: Take a vk_queue in wsi_common_queue_present() 2025-08-22 23:05:02 +00:00