1 From 309d4f0f11bac24a0b487404c51564735ac2c9ed Mon Sep 17 00:00:00 2001
2 From: Otavio Salvador <otavio@ossystems.com.br>
3 Date: Tue, 14 Mar 2017 09:51:23 -0300
4 Subject: [PATCH 1/2] Revert "etnaviv: Cannot render to rb-swapped formats"
5 Organization: O.S. Systems Software LTDA.
7 This reverts commit 6c89a728d9e5d072cb504453e73077564c6523d3.
9 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
10 Signed-off-by: Fabio Estevam <festevam@gmail.com>
12 src/gallium/drivers/etnaviv/etnaviv_screen.c | 7 ++-----
13 1 file changed, 2 insertions(+), 5 deletions(-)
15 diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c
16 index 28db9b95bf..2298936f51 100644
17 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c
18 +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c
19 @@ -469,11 +469,8 @@ etna_screen_is_format_supported(struct pipe_screen *pscreen,
22 if (usage & PIPE_BIND_RENDER_TARGET) {
23 - /* If render target, must be RS-supported format that is not rb swapped.
24 - * Exposing rb swapped (or other swizzled) formats for rendering would
25 - * involve swizzing in the pixel shader.
27 - if (translate_rs_format(format) != ETNA_NO_MATCH && !translate_rs_format_rb_swap(format)) {
28 + /* if render target, must be RS-supported format */
29 + if (translate_rs_format(format) != ETNA_NO_MATCH) {
30 /* Validate MSAA; number of samples must be allowed, and render target
31 * must have MSAA'able format. */
32 if (sample_count > 1) {