[Mesa-dev] [PATCH 4/5] panfrost: Remove speculative if 0'd format bit code

Alyssa Rosenzweig alyssa at rosenzweig.io
Sat Feb 9 01:25:40 UTC 2019


Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
---
 src/gallium/drivers/panfrost/pan_context.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 31c0029ac1a..2daa2a56b82 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -151,12 +151,6 @@ panfrost_set_fragment_afbc(struct panfrost_context *ctx)
 
                 ctx->fragment_rts[0].format |= MALI_MFBD_FORMAT_AFBC;
 
-                /* Change colourspace from RGB to BGR? */
-#if 0
-                ctx->fragment_rts[0].format |= 0x800000;
-                ctx->fragment_rts[0].format &= ~0x20000;
-#endif
-
                 /* Point rendering to our special framebuffer */
                 ctx->fragment_rts[0].framebuffer = rsrc->bo->afbc_slab.gpu + rsrc->bo->afbc_metadata_size;
 
-- 
2.20.1



More information about the mesa-dev mailing list