[Mesa-dev] [PATCH 2/5] panfrost: Set the GEM handle for AFBC buffers

Tomeu Vizoso tomeu.vizoso at collabora.com
Wed Mar 27 15:32:49 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 d242c3f90cea..c513791615ea 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -87,6 +87,7 @@ panfrost_enable_afbc(struct panfrost_context *ctx, struct panfrost_resource *rsr
 
         rsrc->bo->gpu = rsrc->bo->afbc_slab.gpu | (ds ? 0 : 1);
         rsrc->bo->cpu = rsrc->bo->afbc_slab.cpu;
+        rsrc->bo->gem_handle = rsrc->bo->afbc_slab.gem_handle;
 }
 
 static void
-- 
2.20.1



More information about the mesa-dev mailing list