summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRinat Ibragimov <ibragimovrinat@mail.ru>2014-04-15 11:01:43 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-04-15 11:07:24 +0800
commit0d60132599318695dd1af8d51d2b160623ac4406 (patch)
tree367507989a500e8ee28377f53cbf66392f6fc6af
parent8f6a3dd1fc3f464ec8fc48b5fcb9d2d9d2fa9954 (diff)
downloadlibva-0d60132599318695dd1af8d51d2b160623ac4406.tar.gz
Add a workaround for a bug in xorg-server/glx
See details at https://bugs.freedesktop.org/show_bug.cgi?id=76755 Signed-off-by: Rinat Ibragimov <ibragimovrinat@mail.ru> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--va/glx/va_glx_impl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/va/glx/va_glx_impl.c b/va/glx/va_glx_impl.c
index e181c9a..1adb369 100644
--- a/va/glx/va_glx_impl.c
+++ b/va/glx/va_glx_impl.c
@@ -500,6 +500,15 @@ static int create_tfp_surface(VADriverContextP ctx, VASurfaceGLXP pSurfaceGLX)
GLX_RED_SIZE, 8,
GLX_GREEN_SIZE, 8,
GLX_BLUE_SIZE, 8,
+ /*
+ * depth test isn't enabled in the implementaion of VA GLX,
+ * so depth buffer is unnecessary. However to workaround a
+ * bug in older verson of xorg-server, always require a depth
+ * buffer.
+ *
+ * See https://bugs.freedesktop.org/show_bug.cgi?id=76755
+ */
+ GLX_DEPTH_SIZE, 1,
GL_NONE,
};
for (attrib = fbconfig_attrs; *attrib != GL_NONE; attrib += 2)