mesa/src/broadcom/vulkan
Iago Toral Quiroga 45b8dc667a v3dv: don't allocate MAX_PUSH_CONSTANTS_SIZE bytes for the push constants UBO
We have code in there to allocate various segments of MAX_PUSH_CONSTANTS_SIZE
to handle the case of various draw calls in the same command buffer requiring
different push constants, so we are implicitly expecting it to be larger than
this. In fact, this only works now because when we allocate a BO we are always
at least allocating a full page, so the least we ever allocate is 4096 bytes,
so be explicit about it to avoid confusion.

Also, since we were always mapping MAX_PUSH_CONSTANTS_SIZE and the mapping
always starts at the beginning of the BO, it looks like after the first copy
when the resource offset is not zero, we would be writing outside the mapped
range. Always map the full size of the BO instead to ensure this doesn't
happen.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17536>
2022-07-19 05:46:04 +00:00
..
.dir-locals.el
.editorconfig
meson.build v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dv_android.c v3dv: Use the common QueueSignalReleaseImageANDROID from RADV 2022-01-05 16:36:10 +00:00
v3dv_bo.c v3dv/bo: unmap any bo that goes to the bo cache 2022-05-25 10:55:16 +00:00
v3dv_bo.h v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dv_cl.c v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dv_cl.h v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dv_cmd_buffer.c v3dv: move push constant data to the command buffer state 2022-07-19 05:46:04 +00:00
v3dv_debug.c v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dv_debug.h v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dv_descriptor_set.c v3dv: use updated tokens from vk.xml 2022-07-12 15:53:11 +00:00
v3dv_device.c v3d,v3dv: stop hardcoding various image limits 2022-07-13 10:09:34 +00:00
v3dv_formats.c v3d,v3dv: stop hardcoding various image limits 2022-07-13 10:09:34 +00:00
v3dv_image.c vulkan,v3dv: Add a driver_internal flag to vk_image_view_init/create 2022-05-17 18:14:55 +00:00
v3dv_limits.h v3dv: Use util/os_time helpers 2022-04-13 17:22:14 +00:00
v3dv_meta_clear.c v3dv: Use vk_pipeline_hash_shader_stage() 2022-06-28 09:07:32 +00:00
v3dv_meta_common.h v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dv_meta_copy.c v3dv: use updated tokens from vk.xml 2022-07-12 15:53:11 +00:00
v3dv_pass.c v3dv: use updated tokens from vk.xml 2022-07-12 15:53:11 +00:00
v3dv_pipeline.c v3dv: fix comment for point_sprite_mask filed in shader key 2022-07-13 05:20:31 +00:00
v3dv_pipeline_cache.c v3dv: use updated tokens from vk.xml 2022-07-12 15:53:11 +00:00
v3dv_private.h v3dv: move push constant data to the command buffer state 2022-07-19 05:46:04 +00:00
v3dv_query.c v3dv: use updated tokens from vk.xml 2022-07-12 15:53:11 +00:00
v3dv_queue.c v3dv: Implement VK_KHR_performance_query 2022-06-27 07:34:16 +00:00
v3dv_uniforms.c v3dv: don't allocate MAX_PUSH_CONSTANTS_SIZE bytes for the push constants UBO 2022-07-19 05:46:04 +00:00
v3dv_wsi.c v3dv: Use the common AcquireNextImage implementation 2022-06-10 01:33:12 +00:00
v3dvx_cmd_buffer.c v3dv: merge pending secondary barrier state into primary command buffers 2022-06-14 11:30:33 +00:00
v3dvx_descriptor_set.c v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dvx_device.c v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00
v3dvx_formats.c v3dv: clean up get_internal_type_bpp_for_image_aspects 2022-07-13 10:09:34 +00:00
v3dvx_image.c v3d,v3dv: stop copying and pasting the translate_swizzle helper 2022-07-13 10:09:34 +00:00
v3dvx_meta_common.c v3d,v3dv: stop hardcoding various image limits 2022-07-13 10:09:34 +00:00
v3dvx_pipeline.c v3dv: implement VK_EXT_line_rasterization 2022-03-18 09:38:38 +00:00
v3dvx_private.h v3dv: use updated tokens from vk.xml 2022-07-12 15:53:11 +00:00
v3dvx_queue.c v3dv/v3d: Fix copyright holder to Raspberry Pi Ltd 2022-02-18 11:50:07 +01:00