summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-01-27 00:03:05 -0500
committerBas Nieuwenhuizen <[email protected]>2017-01-30 08:42:26 +0100
commit34bfe4b1bb68b579b376033ce5ed4b4520d2dc28 (patch)
treeb9a9d6e273893b595aae1442aa1c56d243f3a6e1
parentf8d5e1ab2dcb7d6d96c47cff7bd174e8e98bbdd5 (diff)
radv: Don't allow any operations on non-supported depth/stencil formats.
We really use the depth block for the blits. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/amd/vulkan/radv_formats.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index 87c28f1ede0..e147f94074c 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -565,11 +565,12 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
}
if (vk_format_is_depth_or_stencil(format)) {
- if (radv_is_zs_format_supported(format))
+ if (radv_is_zs_format_supported(format)) {
tiled |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT;
- tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
- tiled |= VK_FORMAT_FEATURE_BLIT_SRC_BIT |
- VK_FORMAT_FEATURE_BLIT_DST_BIT;
+ tiled |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
+ tiled |= VK_FORMAT_FEATURE_BLIT_SRC_BIT |
+ VK_FORMAT_FEATURE_BLIT_DST_BIT;
+ }
} else {
bool linear_sampling;
if (radv_is_sampler_format_supported(format, &linear_sampling)) {