xserver: Branch 'master'

Keith Packard keithp at kemper.freedesktop.org
Fri Jan 16 10:49:09 PST 2015


 hw/xwayland/xwayland-glamor.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5af2f5b7d2f955586d0cb40eb30812f1893db22e
Author: Markus Wick <markus at selfnet.de>
Date:   Thu Jan 15 22:03:18 2015 +0100

    xwayland: Set glamor filter to nearest
    
    glEGLImageTargetTexture2DOES only set the first level.
    Mesa handles this new texture as incomplete and renders a black screen.
    We also want to prevent linear filtering.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=81800
    
    Signed-off-by: Markus Wick <markus at selfnet.de>
    Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer at amd.com>
    Reviewed-by: Eric Anholt <eric at anholt.net>
    Signed-off-by: Keith Packard <keithp at keithp.com>

diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c
index 09b454f..dd85518 100644
--- a/hw/xwayland/xwayland-glamor.c
+++ b/hw/xwayland/xwayland-glamor.c
@@ -137,6 +137,9 @@ xwl_glamor_create_pixmap_for_bo(ScreenPtr screen, struct gbm_bo *bo, int depth)
 
     glGenTextures(1, &xwl_pixmap->texture);
     glBindTexture(GL_TEXTURE_2D, xwl_pixmap->texture);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+
     glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, xwl_pixmap->image);
     glBindTexture(GL_TEXTURE_2D, 0);
 


More information about the xorg-commit mailing list