llvmpipe: block weird uses of subsampled formats in buffers

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24589>
(cherry picked from commit 632d4de214)
This commit is contained in:
Mike Blumenkrantz 2023-08-09 15:18:26 -04:00 committed by Eric Engestrom
parent 57ba6878b6
commit 0be3be7c6b
2 changed files with 4 additions and 1 deletions

View file

@ -472,7 +472,7 @@
"description": "llvmpipe: block weird uses of subsampled formats in buffers",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -822,6 +822,9 @@ llvmpipe_is_format_supported(struct pipe_screen *_screen,
format != PIPE_FORMAT_ETC1_RGB8)
return false;
if (format_desc->layout == UTIL_FORMAT_LAYOUT_SUBSAMPLED && target == PIPE_BUFFER)
return false;
/*
* Everything can be supported by u_format
* (those without fetch_rgba_float might be not but shouldn't hit that)