st/dri: Add shared usage on buffers created

Tested-by: Scott Moreau <oreaus@gmail.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
This commit is contained in:
Jakob Bornecrantz 2012-08-14 15:19:22 +02:00
parent 61e95b8a5f
commit c4610e9f92
1 changed files with 3 additions and 0 deletions

View File

@ -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;