[Mesa-dev] [PATCH 2/6] st/dri: Add shared usage on buffers created
Jakob Bornecrantz
jakob at vmware.com
Wed Aug 15 03:50:14 PDT 2012
Signed-off-by: Jakob Bornecrantz <jakob at vmware.com>
---
src/gallium/state_trackers/dri/drm/dri2.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index d5a98a2..1ea62be 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;
--
1.7.9.5
More information about the mesa-dev
mailing list