summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/xa
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2015-09-02 23:13:33 -0700
committerThomas Hellstrom <thellstrom@vmware.com>2015-09-07 01:25:08 -0700
commit1432a182414352e853bfdad997591598e621fd73 (patch)
treea619a9cd193f98f23385bc15b4caedb56338ccf3 /src/gallium/targets/xa
parent00c568f679413ee627421d5724beb85be3da55c1 (diff)
downloadexternal_mesa3d-1432a182414352e853bfdad997591598e621fd73.zip
external_mesa3d-1432a182414352e853bfdad997591598e621fd73.tar.gz
external_mesa3d-1432a182414352e853bfdad997591598e621fd73.tar.bz2
xa: add xa_surface_from_handle2 v2
Like xa_surface_from_handle(), but takes a handle type, rather than hard-coding 'shared' handle. This is needed to fix bugs seen with xf86-video-freedreno with xrandr rotation, for example. The root issue is that doing a GEM_OPEN ioctl on a bo that already has a GEM handle associated with the drm_file will result in two unique handles for the same bo. Which causes all sorts of follow-on fail. v2: - Add support for for fd handles. - Avoid duplicating code. - Bump xa version minor. Signed-off-by: Rob Clark <robclark@freedesktop.org> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'src/gallium/targets/xa')
-rw-r--r--src/gallium/targets/xa/xa.sym1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/targets/xa/xa.sym b/src/gallium/targets/xa/xa.sym
index 9c7f422..50ccc99 100644
--- a/src/gallium/targets/xa/xa.sym
+++ b/src/gallium/targets/xa/xa.sym
@@ -23,6 +23,7 @@
xa_surface_dma;
xa_surface_format;
xa_surface_from_handle;
+ xa_surface_from_handle2;
xa_surface_handle;
xa_surface_map;
xa_surface_redefine;