summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2012-08-14 15:19:22 +0200
committerJakob Bornecrantz <[email protected]>2012-08-22 00:01:28 +0200
commitc4610e9f927caa679f34f0d3135d7b1b8cb8bd29 (patch)
tree7a2f609fe6c16ed2070103b5a0420d4775f3a1ec /src/gallium/state_trackers/dri
parent61e95b8a5f8524c7ff726f92ef6edc6b6bb35196 (diff)
st/dri: Add shared usage on buffers created
Tested-by: Scott Moreau <[email protected]> Signed-off-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index d0be710862b..1f14b5c3140 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -314,6 +314,9 @@ dri2_allocate_buffer(__DRIscreen *sPriv,
break;
}
+ /* because we get the handle and stride */
+ bind |= PIPE_BIND_SHARED;
+
switch (format) {
case 32:
pf = PIPE_FORMAT_B8G8R8A8_UNORM;