summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-10-08 14:43:22 +0200
committerJakob Bornecrantz <[email protected]>2009-10-08 14:54:38 +0200
commitdb828ed7589d0a5687386c4b4268b4e7ff78c866 (patch)
tree29d36ceec5f78f408e25279722e275d42be13b73 /src
parent6d629d4aa211d098fe9541d0b644cf67ee1d7019 (diff)
st/xorg: Old X servers don't deal well with failing accesses
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_exa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c
index 3f0ed3d9809..2633e8caaf5 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa.c
@@ -215,8 +215,12 @@ ExaPrepareAccess(PixmapPtr pPix, int index)
#endif
PIPE_TRANSFER_READ_WRITE,
0, 0, priv->tex->width[0], priv->tex->height[0]);
- if (!priv->map_transfer)
+ if (!priv->map_transfer)
+#ifdef EXA_MIXED_PIXMAPS
return FALSE;
+#else
+ FatalError("failed to create transfer\n");
+#endif
pPix->devPrivate.ptr =
exa->scrn->transfer_map(exa->scrn, priv->map_transfer);