xf86-video-intel: src/sna/sna_dri2.c
Chris Wilson
ickle at kemper.freedesktop.org
Tue Apr 21 07:18:30 PDT 2015
src/sna/sna_dri2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d8401806b4c2dc41c6054c646080c8f79189b980
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Apr 21 15:17:38 2015 +0100
sna/dri2: Don't convert from Y-to-X when exporting pixmaps
If the pixmap's GPU bo is already allocated with Y, expect Mesa to deal
with it rather than convert to X.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 9ee7e99..dbdde32 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -454,7 +454,7 @@ static struct kgem_bo *sna_pixmap_set_dri(struct sna *sna,
tiling = color_tiling(sna, &pixmap->drawable);
if (tiling < 0)
tiling = -tiling;
- if (priv->gpu_bo->tiling != tiling && !priv->gpu_bo->scanout)
+ if (priv->gpu_bo->tiling < tiling && !priv->gpu_bo->scanout)
sna_pixmap_change_tiling(pixmap, tiling);
return priv->gpu_bo;
More information about the xorg-commit
mailing list