mesa/src
Jose Maria Casanova Crespo 11dce2ac81 v3d: fix CLE MMU errors avoiding using last bytes of CL BOs.
The last V3D_CLE_READAHEAD bytes of the CLE buffer are unusable because
using them would prefetch the next readahead bytes of the CL that would
be outside the allocated BO. To guarantee that we can chain a BO to the
current CL we always reserve space for the BRANCH packet.

Not taking this into account has been generating kernel dmesg errors like
"MMU error from client CLE".

As V3D_CLE_READAHEAD is different from RPi4 (256 bytes) to RPi5 (1024 bytes).
So we needed to rename v3d_cl.c to v3dX_cl.c to have different objects per
V3D_VERSION.

Extra assertions have been included to validate that we don't write
packets over the usable size of the CL silently.

v2: - Remove spurious blank line (Iago Toral)
    - Do not declare unusable the space needed for the BRANCH packet,
      and take it into account for all reservations.
v3: - Handle BRANCH packet reserve only when CLE BO allocation is done.
v4: - Assert on BO size updates that we are within the BO size.
      (Iago Toral)

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29023>
2024-05-22 18:44:14 +00:00
..
amd radv: replace vk_to_non_srgb_format() by vk_format_no_srgb() 2024-05-22 16:34:17 +00:00
android_stub vulkan/android: Add helper to probe AHB support 2024-05-14 14:53:44 +00:00
asahi asahi: unify naming for COUNTS structs 2024-05-16 13:25:56 -04:00
broadcom broadcom/simulator: Add DRM_IOCTL_V3D_GET_COUNTER to simulator 2024-05-22 05:37:48 +00:00
c11
compiler nir: Add nir_opt_load_store_update_alignments. 2024-05-21 16:06:23 +00:00
drm-shim drm-shim: Stub syncobj reset ioctl 2024-05-21 14:14:25 +00:00
egl egl/android: Fix sRGB visuals 2024-05-21 11:57:55 +00:00
etnaviv ci/etnaviv: add flakes from nightly runs 2024-05-17 19:29:40 +00:00
freedreno freedreno: Make fd_pps_driver.h usable without including other FD sources 2024-05-22 17:09:59 +00:00
gallium v3d: fix CLE MMU errors avoiding using last bytes of CL BOs. 2024-05-22 18:44:14 +00:00
gbm loader: silence implicit-load zink error by the loader 2024-05-10 14:19:59 +00:00
getopt
glx glxext: don't try zink if not enabled in mesa 2024-05-13 08:34:57 +00:00
gtest
imagination pvr: use common stype debug 2024-05-10 18:49:38 +00:00
imgui
intel anv: Attempt to compile all pipelines even after errors 2024-05-22 17:46:34 +00:00
loader loader: silence implicit-load zink error by the loader 2024-05-10 14:19:59 +00:00
mapi glapi: fix param type in TexGenxOES 2024-05-01 00:47:59 +02:00
mesa mesa: replace shader_info::source_sha1 2024-05-09 20:08:18 +00:00
microsoft microsoft/clc: fix incorrect changes that got through while the Windows CI was down 2024-05-10 20:52:21 +00:00
nouveau nvk/ci: add nvk job on a GA106 (RTX 3060) 2024-05-22 10:06:16 +00:00
panfrost panvk: Emit the fragment shader RSD dynamically 2024-05-22 14:13:16 +00:00
tool pps: Config tweaks to avoid loosing traces 2024-03-25 19:49:50 +00:00
util meson: use glslang --depfile argument when possible 2024-05-20 17:34:17 +00:00
virtio venus: enable VK_KHR_maintenance5 2024-05-22 18:15:34 +00:00
vulkan wsi/wayland: Fix use after free from improperly stored VkAllocationCallbacks 2024-05-21 21:01:25 +00:00
.clang-format asahi: add agx_ppp_push_merged helper 2024-05-14 04:57:27 +00:00
meson.build loader/wayland: Add fallback wl_display_dispatch_queue_timeout 2024-02-27 13:10:13 +00:00