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:
parent
ae67294479
commit
7e7e01fe0c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue