radv: Only support format with a PIPE_FORMAT.
Otherwise non-supported format will be mapped to PIPE_FORMAT_NONE and as such get a non-NULL description. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8797>
This commit is contained in:
committed by
Marge Bot
parent
6515a63410
commit
72f4cf530f
@@ -656,7 +656,8 @@ 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 (!desc || desc->layout == VK_FORMAT_LAYOUT_SUBSAMPLED) {
|
||||
if (!desc || vk_format_to_pipe_format(format) == PIPE_FORMAT_NONE ||
|
||||
desc->layout == VK_FORMAT_LAYOUT_SUBSAMPLED) {
|
||||
out_properties->linearTilingFeatures = linear;
|
||||
out_properties->optimalTilingFeatures = tiled;
|
||||
out_properties->bufferFeatures = buffer;
|
||||
|
||||
Reference in New Issue
Block a user