summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2017-04-21 09:05:51 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-25 15:34:10 -0400
commite59a32c897c9f093f54ce4b695e9aff1ba20bda2 (patch)
treedc790d6dc792247b2f716ecddbb4dde4d3b178e9 /hw
parent6a6bf1ae046124a9d8a6f3f53f02707951c85c43 (diff)
glamor: an FBO is not needed for Xv pixmaps
It appears that on some hardware/diver combo such as nv30/nouveau, using GL_ALPHA as format for 8-bit depth will cause an incomplete attachment error (GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) when trying to bind the texture. As a result, the FBO is NULL and glamor segfaults when trying to access the FBO width/height in pixmap_priv_get_scale() in glamor_xv_render(). This happens with glamor-xv which uses 8-bit pixmaps, meaning that on such hardware/driver, trying to play a video using Xv will lead to a crash of the Xserver. This affects Xwayland, Xephyr, modesetting driver with glamor accel. But the use of an FBO is not actually needed for glamox-xv, so by disabling FBO at pixmap creation, we can avoid the issue entirely. Fix suggested by Eric Anholt <eric@anholt.net> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=100710 Fixes: https://bugzilla.redhat.com/1412814 Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 7bfb87a2137853295ecc9e544a15626cfd773a02)
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions