[Mesa-dev] [PATCH v2 5/8] panfrost: Store GEM handle of AFBC BOs

Tomeu Vizoso tomeu.vizoso at collabora.com
Fri Mar 8 09:27:10 UTC 2019


Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
---
 src/gallium/drivers/panfrost/pan_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 51c2ded48fe4..fdb3aa7ccdc2 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -107,6 +107,7 @@ panfrost_enable_afbc(struct panfrost_context *ctx, struct panfrost_resource *rsr
                                true, 0, 0, 0);
 
         rsrc->bo->has_afbc = true;
+        rsrc->bo->gem_handle = rsrc->bo->afbc_slab.gem_handle;
 
         /* Compressed textured reads use a tagged pointer to the metadata */
 
-- 
2.20.1



More information about the mesa-dev mailing list