mesa/src
Pierre-Eric Pelloux-Prayer affa8a9fb2 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>
2023-02-16 00:25:17 -05:00
..
amd amd/surface: fix base_mip_width of subsampled formats 2023-02-16 00:25:17 -05:00
android_stub android: Cleanup unneeded headers from the sync stub 2023-01-25 08:58:25 -03:00
asahi asahi: Drop agx_device.memctx 2023-02-15 22:16:51 +00:00
broadcom broadcom/ci: mark test as flaky 2023-02-14 00:52:35 +00:00
c11 c11: Remove _MTX_INITIALIZER_NP for windows 2022-11-09 04:38:28 +00:00
compiler meson: only build glsl when needed 2023-02-15 02:53:54 +00: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/kopper: Pass ancillary invalidate flush flags down to gallium. 2023-02-15 19:17:07 +00:00
etnaviv ci/etnaviv: Update deqp xfails for gc2000. 2023-02-14 06:33:12 +00:00
freedreno turnip: avoid FMT6_Z24_UNORM_S8_UINT_AS_R8G8B8A8 for event blits 2023-02-16 01:35:50 +00:00
gallium asahi: Do not use memctx for pools / meta cache 2023-02-15 22:16:51 +00:00
gbm gbm/backend: fix gbm compile without dri 2023-01-13 22:29:29 +00:00
getopt
glx egl/kopper: Pass ancillary invalidate flush flags down to gallium. 2023-02-15 19:17:07 +00:00
gtest
hgl
imagination meson: don't pass vk wsi args where they don't belong 2023-02-15 18:35:14 +00:00
imgui
intel hasvk: fix KHR_shader_float_controls reporting 2023-02-15 23:55:39 +00:00
loader loader: Add missing brace to fix compile 2023-02-08 08:49:57 +00:00
mapi glthread: make marshal functions for glBegin/End attribs non-static 2023-01-20 21:34:09 -05:00
mesa gallium: plumb resolve attachments through from frontends -> pipe_framebuffer_state 2023-02-15 18:06:16 +00:00
microsoft meson: don't pass vk wsi args where they don't belong 2023-02-15 18:35:14 +00:00
nouveau nir: Eliminate nir_op_f2b 2023-02-03 22:39:57 +00:00
panfrost meson: don't pass vk wsi args where they don't belong 2023-02-15 18:35:14 +00:00
tool tool/pps: Fix 32-bit build issue with format string 2023-01-18 19:27:41 +00:00
util util/disk_cache: Handle OS'es without d_type in struct dirent 2023-02-13 22:18:23 +00:00
virtio venus: update venus-protocol headers to partially fix WA1 2023-02-16 01:15:27 +00:00
vulkan meson: don't pass vk wsi args where they don't belong 2023-02-15 18:35:14 +00:00
meson.build meson: drop TODO: opengl, it's done 2023-02-15 02:53:54 +00:00