mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
etnaviv: Cannot render to rb-swapped formats
Exposing rb swapped (or other swizzled) formats for rendering would
involve swizzing in the pixel shader. This is not the case at the
moment, so reject requests for creating such surfaces.
(GPUs that need an extra resolve step anyway due to multiple pixel
pipes, such as gc2000, might also do this swap in the resolve operation.
But this would be tricky to keep track of)
CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>
(cherry picked from commit 658568941d)
This commit is contained in:
parent
f3b7a51383
commit
6c89a728d9
1 changed files with 5 additions and 2 deletions
|
|
@ -469,8 +469,11 @@ etna_screen_is_format_supported(struct pipe_screen *pscreen,
|
|||
return FALSE;
|
||||
|
||||
if (usage & PIPE_BIND_RENDER_TARGET) {
|
||||
/* if render target, must be RS-supported format */
|
||||
if (translate_rs_format(format) != ETNA_NO_MATCH) {
|
||||
/* If render target, must be RS-supported format that is not rb swapped.
|
||||
* Exposing rb swapped (or other swizzled) formats for rendering would
|
||||
* involve swizzing in the pixel shader.
|
||||
*/
|
||||
if (translate_rs_format(format) != ETNA_NO_MATCH && !translate_rs_format_rb_swap(format)) {
|
||||
/* Validate MSAA; number of samples must be allowed, and render target
|
||||
* must have MSAA'able format. */
|
||||
if (sample_count > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue