radv: Use desc->format
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Tue, 12 Jul 2022 12:13:07 +0000 (14:13 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Jul 2022 12:48:01 +0000 (12:48 +0000)
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17490>

src/amd/vulkan/radv_formats.c

index 9865452..05e4c4f 100644 (file)
@@ -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;