Mesa (master): panfrost: Set the GEM handle for AFBC buffers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Mar 27 16:11:14 UTC 2019
Module: Mesa
Branch: master
Commit: 95748f648321a9569af61c64da9dfc805c629a24
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=95748f648321a9569af61c64da9dfc805c629a24
Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date: Wed Mar 27 14:56:36 2019 +0100
panfrost: Set the GEM handle for AFBC buffers
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 d242c3f90ce..c513791615e 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
More information about the mesa-commit
mailing list