mesa/src
Samuel Iglesias Gonsálvez 09e9be3d8f turnip: fix resolve MSAA D24_UNORM_S8_UINT image to S8_UINT
According to VK_KHR_depth_stencil_resolve spec (see
VUID-VkSubpassDescriptionDepthStencilResolve-pDepthStencilResolveAttachment-03182)

"If the VkFormat of pDepthStencilResolveAttachment has a stencil
component, then the VkFormat of pDepthStencilAttachment must have a
stencil component with the same number of bits and numerical type"

That means that we can resolve MSAA depth/stencil to a stencil only
image only if the stencil component matches with same number of bits
and type.

Although the driver only supports VK_RESOLVE_MODE_SAMPLE_ZERO_BIT
resolve mode, it was doing a sample average when resolving a MSAA
D24_UNORM_S8_UINT image to S8_UINT.

Fixes the following tests:

dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_32_32.samples_2.d24_unorm_s8_uint.compatibility_depth_zero_stencil_zero_testing_s
tencil
dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_32_32.samples_2.d24_unorm_s8_uint_separate_layouts.compatibility_depth_zero_stenc
il_zero_testing_stencil

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8527>
2021-02-03 16:51:02 +00:00
..
amd radv: Fix assert. 2021-02-03 16:18:20 +00:00
android_stub egl/android: implement image cleanup callback 2020-12-15 06:05:27 +00:00
broadcom broadcom/compiler: improve generation of if conditions 2021-02-02 06:55:49 +00:00
compiler nir: Add nir_zero_initialize_shared_memory 2021-02-02 17:06:56 +00:00
drm-shim drm-shim: Fix unused variable warnings from asserts in release build. 2020-08-28 22:45:08 +00:00
egl egl/dri2: enable EGL_WL_bind_wayland_display in EGL device platform 2021-01-28 00:30:10 +00:00
etnaviv etnaviv, v3d: Fix valgrind include paths. 2020-12-15 19:39:29 +00:00
freedreno turnip: fix resolve MSAA D24_UNORM_S8_UINT image to S8_UINT 2021-02-03 16:51:02 +00:00
gallium intel/perf: introduce additional ralloc context parameter 2021-02-03 16:37:59 +00:00
gbm egl: implement EGL_EXT_protected_surface support 2020-11-02 10:15:47 +01:00
getopt
glx glx: Provide glvnd wrapper for glXSwapIntervalEXT 2021-01-22 22:34:23 -08:00
gtest
hgl hgl: Major refactor and cleanup 2021-01-09 20:51:35 -06:00
imgui
intel intel/perf: introduce additional ralloc context parameter 2021-02-03 16:37:59 +00:00
loader loader: Print dlerror() output in the failure message 2020-11-04 21:45:37 +00:00
mapi glapi: guard against invalid XML definitions for glthread 2021-01-29 02:28:42 +00:00
mesa i965: use aligned malloc for context instead of ralloc 2021-02-03 16:37:59 +00:00
microsoft microsoft/compiler: Make resource_state_manager only build with_gallium_d3d12 2021-01-29 12:54:02 -08:00
nouveau nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
panfrost pan/decode: Prefer sizeof to ARRAY_SIZE for char 2021-02-03 14:04:53 +00:00
util util: Use explicit relaxed reads for u_queue 2021-01-28 18:07:09 +00:00
virtio virgl: update headers 2021-01-22 21:25:48 +00:00
vulkan vulkan: Drop the type_prefix parameter from gen_extensions 2021-02-01 18:54:25 +00:00
meson.build nouveau: add drm-shim support 2021-01-11 22:45:01 +00:00
SConscript