projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61e95b8
)
st/dri: Add shared usage on buffers created
author
Jakob Bornecrantz
<jakob@vmware.com>
Tue, 14 Aug 2012 13:19:22 +0000
(15:19 +0200)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Tue, 21 Aug 2012 22:01:28 +0000
(
00:01
+0200)
Tested-by: Scott Moreau <oreaus@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/state_trackers/dri/drm/dri2.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/drm/dri2.c
b/src/gallium/state_trackers/dri/drm/dri2.c
index d0be710862bf594884105fbdc60c53c967e6fb0f..1f14b5c3140612ad90ddbe07ae5a3339c7e8db1e 100644
(file)
--- 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;