panfrost: Set the GEM handle for AFBC buffers
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 27 Mar 2019 13:56:36 +0000 (14:56 +0100)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 27 Mar 2019 16:03:34 +0000 (17:03 +0100)
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c

index d242c3f90ceab9b57825bc7d7a92460166ad9f81..c513791615eadf4a266859674d8d94fff3764654 100644 (file)
@@ -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