From a33e9ea3b9b7ac98d6e9bc385bbbe7eac2eb73d0 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Thu, 27 Aug 2009 20:17:53 +0200 Subject: st/xorg/dri: Pass texture formats via the DRI2 protocol flags. No need to guess. --- src/gallium/state_trackers/xorg/xorg_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/xorg/xorg_dri2.c') diff --git a/src/gallium/state_trackers/xorg/xorg_dri2.c b/src/gallium/state_trackers/xorg/xorg_dri2.c index 7d6954016f..111024692e 100644 --- a/src/gallium/state_trackers/xorg/xorg_dri2.c +++ b/src/gallium/state_trackers/xorg/xorg_dri2.c @@ -137,7 +137,7 @@ driCreateBuffers(DrawablePtr pDraw, unsigned int *attachments, int count) buffers[i].pitch = stride; buffers[i].cpp = 4; buffers[i].driverPrivate = &privates[i]; - buffers[i].flags = 0; /* not tiled */ + buffers[i].flags = tex->format; privates[i].pPixmap = pPixmap; privates[i].buf = buf; privates[i].tex = tex; -- cgit v1.2.3