diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-11-19 17:30:32 +0100 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-11-19 17:30:32 +0100 |
commit | 34145fc3b739d21387e7df483ca902c8373ce319 (patch) | |
tree | 20d050e33258ecddff4740678abde38017cc0576 /src/gallium | |
parent | 012d0193cc9ad6fdc9829db0a6884a5a590dd4c5 (diff) | |
download | external_mesa3d-34145fc3b739d21387e7df483ca902c8373ce319.zip external_mesa3d-34145fc3b739d21387e7df483ca902c8373ce319.tar.gz external_mesa3d-34145fc3b739d21387e7df483ca902c8373ce319.tar.bz2 |
st/xorg: Try harder to ensure a shared texture has valid contents right away.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_dri2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_dri2.c b/src/gallium/state_trackers/xorg/xorg_dri2.c index 660ea6a..9a7c356 100644 --- a/src/gallium/state_trackers/xorg/xorg_dri2.c +++ b/src/gallium/state_trackers/xorg/xorg_dri2.c @@ -127,9 +127,12 @@ driDoCreateBuffer(DrawablePtr pDraw, DRI2BufferPtr buffer, unsigned int format) } if (!tex) { + /* First call to make sure we have a pixmap private */ exaMoveInPixmap(private->pPixmap); xorg_exa_set_shared_usage(private->pPixmap); pScreen->ModifyPixmapHeader(private->pPixmap, 0, 0, 0, 0, 0, NULL); + /* Second call to make sure texture has valid contents */ + exaMoveInPixmap(private->pPixmap); tex = xorg_exa_get_texture(private->pPixmap); } |