radv: Use desc->format

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>
This commit is contained in:
Konstantin Seurer 2022-07-12 14:13:07 +02:00 committed by Marge Bot
parent ae67294479
commit 7e7e01fe0c
1 changed files with 1 additions and 2 deletions

View 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;