[PATCH v2 10/14] etnaviv: update RS_FORMAT_MASK to include extended formats

Christian Gmeiner christian.gmeiner at gmail.com
Tue May 1 14:48:39 UTC 2018


Also update RS_FORMAT_RB_SWAP.

Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj at gmail.com>
---
 src/gallium/drivers/etnaviv/etnaviv_format.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/etnaviv/etnaviv_format.c b/src/gallium/drivers/etnaviv/etnaviv_format.c
index 20beff84e8..4be397e3bc 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_format.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_format.c
@@ -48,9 +48,9 @@ struct etna_format {
 
 #define RS_FORMAT_NONE ~0
 
-#define RS_FORMAT_MASK        0xf
+#define RS_FORMAT_MASK        0x1f
 #define RS_FORMAT(x)          ((x) & RS_FORMAT_MASK)
-#define RS_FORMAT_RB_SWAP     0x10
+#define RS_FORMAT_RB_SWAP     0x20
 
 #define RS_LAYER_MASK         0x700
 #define RS_LAYER_SHIFT        8
-- 
2.17.0



More information about the etnaviv mailing list