mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
57ba6878b6
commit
0be3be7c6b
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue