summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2017-03-26 11:30:29 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2017-04-05 19:58:25 +0200
commite75001811e3b66986b4ede165a0fdde703d4f05b (patch)
treeb649fd432cf31fa0634384eb431245b4e215dc58
parent7f62ffb68ad1002b6ce7727ce7202de792d53653 (diff)
Revert "etnaviv: Cannot render to rb-swapped formats"
This reverts commit 658568941d5e232d690e1ffbcddbd6ea9685693a. With the help of shader variants we can render to rb-swapped formats now. Fixes about 60 piglits. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_screen.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c
index 151a1e031e..0bd44004d9 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_screen.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c
@@ -476,11 +476,8 @@ 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 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)) {
+ /* if render target, must be RS-supported format */
+ if (translate_rs_format(format) != ETNA_NO_MATCH) {
/* Validate MSAA; number of samples must be allowed, and render target
* must have MSAA'able format. */
if (sample_count > 1) {