llvmpipe: Fix creation of shared and scanout textures.
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>
Wed, 12 Dec 2012 20:00:58 +0000 (21:00 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 23 Feb 2013 18:36:58 +0000 (18:36 +0000)
NOTE: This is a candidate for the stable branches.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_texture.c

index d55985ba170cdd4ab336265c6e065d9e59e1f19a..f34882808a420f488c197639309f035c276cd5c1 100644 (file)
@@ -295,7 +295,9 @@ llvmpipe_resource_create(struct pipe_screen *_screen,
    /* assert(lpr->base.bind); */
 
    if (resource_is_texture(&lpr->base)) {
-      if (lpr->base.bind & PIPE_BIND_DISPLAY_TARGET) {
+      if (lpr->base.bind & (PIPE_BIND_DISPLAY_TARGET |
+                            PIPE_BIND_SCANOUT |
+                            PIPE_BIND_SHARED)) {
          /* displayable surface */
          if (!llvmpipe_displaytarget_layout(screen, lpr))
             goto fail;