diff options
author | Samuel Pitoiset <[email protected]> | 2018-09-18 15:06:42 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-09-19 13:36:07 +0200 |
commit | febdc13a6cce3f1931402f28f521adf32b14c152 (patch) | |
tree | 40a68263a13105f5a4cd17b9f3e96122cba84931 /src | |
parent | fb86365148d5b8f3f06c5e42d9c8440fc1f6693f (diff) |
radv: do not support blitting surfaces with depth and stencil
Fixes:
dEQP-VK.api.copy_and_blit.core.blit_image.all_formats.depth_stencil.d32_sfloat_s8_uint_d32_sfloat_s8_uint.optimal_optimal_nearest
And all friends that try to blit a surface with different
depth and stencil formats.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_formats.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index e1b4b5e830f..ad06c9e9964 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -645,6 +645,10 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical if (radv_is_filter_minmax_format_supported(format)) tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT; + /* Don't support blitting surfaces with depth/stencil. */ + if (vk_format_is_depth(format) && vk_format_is_stencil(format)) + tiled &= ~VK_FORMAT_FEATURE_BLIT_DST_BIT; + /* Don't support linear depth surfaces */ linear = 0; } |