summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTomeu Vizoso <[email protected]>2019-03-27 14:56:36 +0100
committerTomeu Vizoso <[email protected]>2019-03-27 17:03:34 +0100
commit95748f648321a9569af61c64da9dfc805c629a24 (patch)
tree6d03e242a21cc50a6f6eca0b45cca8503d3220c7 /src/gallium
parent02081edfaf8461cbd5dc8c81a7f45a62a03cc94e (diff)
panfrost: Set the GEM handle for AFBC buffers
Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c1
1 files changed, 1 insertions, 0 deletions
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