[Mesa-dev] [PATCH 3/8] etnaviv: update RS_FORMAT_MASK to include extended formats

Christian Gmeiner christian.gmeiner at gmail.com
Fri Oct 20 20:21:23 UTC 2017


Also update RS_FORMAT_RB_SWAP.

Signed-off-by: Christian Gmeiner <christian.gmeiner 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 a2e215b439..7297de3d85 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_format.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_format.c
@@ -45,9 +45,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_FORMAT_X8B8G8R8    (RS_FORMAT_X8R8G8B8 | RS_FORMAT_RB_SWAP)
 #define RS_FORMAT_A8B8G8R8    (RS_FORMAT_A8R8G8B8 | RS_FORMAT_RB_SWAP)
-- 
2.11.0



More information about the mesa-dev mailing list