From 7e7e01fe0c51b7eef6ba5331569604085882ab19 Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Tue, 12 Jul 2022 14:13:07 +0200 Subject: [PATCH] radv: Use desc->format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Konstantin Seurer Reviewed-by: Marek Olšák Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_formats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 98654528659..05e4c4fabfe 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -698,8 +698,7 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical bool blendable; bool scaled = false; /* TODO: implement some software emulation of SUBSAMPLED formats. */ - if (vk_format_to_pipe_format(format) == PIPE_FORMAT_NONE || - desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED) { + if (desc->format == PIPE_FORMAT_NONE || desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED) { out_properties->linearTilingFeatures = linear; out_properties->optimalTilingFeatures = tiled; out_properties->bufferFeatures = buffer;