This stops lavapipe exposing incorrect support.
Cc: mesa-stable
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25609>
format != PIPE_FORMAT_ETC1_RGB8)
return false;
- if (format_desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED && target == PIPE_BUFFER)
+ if ((format_desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED ||
+ format_desc->layout == UTIL_FORMAT_LAYOUT_PLANAR2 ||
+ format_desc->layout == UTIL_FORMAT_LAYOUT_PLANAR3) &&
+ target == PIPE_BUFFER)
return false;
/*