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

Tomeu Vizoso tomeu.vizoso at collabora.com
Mon Mar 4 16:11:41 UTC 2019


Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
 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 b419f25224f2..776469c3e411 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -115,6 +115,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