diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-03-18 12:56:07 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-03-25 18:29:40 +0900 |
commit | 391900a670addec39515f924265bfa9f8bfa9ec0 (patch) | |
tree | 66cc9fa6a63a476f3ea8e09e699b0416dbed4f25 /src/radeon.h | |
parent | dfad91fffb5bd013785223b42d78886df839eacf (diff) |
glamor: Avoid generating GEM flink names for BOs shared via DRI3 v2
We can't create our own struct radeon_bo representation in this case
because destroying that would make the GEM handle inaccessible to glamor
as well. So just get the handle directly via dma-buf.
v2: Close dma-buf file descriptor, pointed out by Axel Davy.
Reviewed-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h index 375a7269..00d0495e 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -252,6 +252,10 @@ struct radeon_pixmap { uint32_t tiling_flags; int stride; + + /* GEM handle for glamor-only pixmaps shared via DRI3 */ + Bool handle_valid; + uint32_t handle; }; #if HAS_DEVPRIVATEKEYREC |