mesa/src
Pierre-Eric Pelloux-Prayer b972c025fe amd/surface: fix base_mip_width of subsampled formats
base_mip_width is used in si_compute_copy_image when the
SI_IMAGE_ACCESS_BLOCK_FORMAT_AS_UINT flag is used.

   width = tex->surface.u.gfx9.base_mip_width;

This will be incorrect if we don't adjust it. For instance,
with a 260x256 image, surf_pitch and base_mip_width are
320 before surf_pitch is updated to be 192.

Both need to match, or computing the width from base_mip_width
leads to incorrect result.

Cc: mesa-stable

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21253>
(cherry picked from commit affa8a9fb2)
2023-02-16 09:12:45 -08:00
..
amd amd/surface: fix base_mip_width of subsampled formats 2023-02-16 09:12:45 -08:00
android_stub
asahi agx: Don't crash trying to encoding minifloats 2023-01-11 21:14:21 +00:00
broadcom v3dv: ensure we apply binning syncs to secondary command buffers 2023-02-07 14:23:33 -08:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler glsl/standalone: Do not pass memory allocated with ralloc_size to free 2023-02-16 09:10:45 -08:00
drm-shim drm-shim: Use hide_drm_device_path() to hide other drm devices 2022-12-30 15:51:11 -08:00
egl egl: Rewrite eglGetMscRateANGLE to avoid probes and handle multi-monitor 2023-01-27 09:17:37 -08:00
etnaviv etnaviv: drm: fix check if BO is on a deferred destroy list 2023-01-31 10:29:04 -08:00
freedreno turnip: fix a null descriptor set dereference 2023-02-16 09:12:44 -08:00
gallium iris: Drop iris_cache_flush_for_render 2023-02-16 09:12:42 -08:00
gbm gbm/backend: fix gbm compile without dri 2023-02-16 09:10:45 -08:00
getopt
glx dri: get rid of LIBGL_SHOW_FPS 2023-01-09 14:25:51 +01:00
gtest gtest: Fix maybe-uninitialized compiler warning 2022-06-29 21:02:18 +00:00
hgl
imagination pvr: Remove PVR_STATIC_CLEAR_.*_BIT and use VkImageAspectFlags. 2023-01-04 16:30:39 +00:00
imgui
intel anv,hasvk: flush what UNIFORM_READ flushes on SHADER_READ 2023-02-16 09:12:43 -08:00
loader loader: unregister special event in loader_dri3_drawable_fini 2023-02-07 14:23:29 -08:00
mapi glthread: fix glArrayElement handling 2023-01-24 15:27:04 -08:00
mesa glthread: handle GL_*_ARRAY in glEnable/Disable 2023-01-24 15:27:05 -08:00
microsoft dzn: Define a symbol that was present in older D3D headers 2023-02-07 08:35:22 -08:00
nouveau nir: Eliminate nir_op_i2b 2022-12-14 06:23:21 +00:00
panfrost panfrost: drop no-longer-needed libglsl 2023-02-16 09:10:45 -08:00
tool perfetto: Add the intel data sources to system.cfg. 2023-01-12 20:21:03 +00:00
util util/disk_cache: Handle OS'es without d_type in struct dirent 2023-02-16 09:10:45 -08:00
virtio vulkan/wsi: Prepare things for image to image blits 2023-01-11 09:31:02 +00:00
vulkan wsi/win32: Don't require buffer blits for software drivers 2023-02-03 09:49:16 -08:00
meson.build meson: build radeon drm-shim also for r300 and r600 2022-11-16 14:37:47 +00:00