summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/xorg
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-08-27 20:17:53 +0200
committerMichel Dänzer <daenzer@vmware.com>2009-08-27 20:17:53 +0200
commita33e9ea3b9b7ac98d6e9bc385bbbe7eac2eb73d0 (patch)
treeecec722af43c49849343b1e88e0b40241137ac06 /src/gallium/state_trackers/xorg
parent1160bf7c65313f66dac0ba4011c8bfe31fee01e5 (diff)
st/xorg/dri: Pass texture formats via the DRI2 protocol flags.
No need to guess.
Diffstat (limited to 'src/gallium/state_trackers/xorg')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_dri2.c2
1 files changed, 1 insertions, 1 deletions
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;