softpipe: Also defere primary textures to backend
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 5 Aug 2009 18:13:55 +0000 (19:13 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 5 Aug 2009 18:29:29 +0000 (19:29 +0100)
src/gallium/drivers/softpipe/sp_texture.c

index 0c773e484b690354973891562ab6b1f015519c9f..4af520e3fd2a81d6ba01c34bc87e52674469a163 100644 (file)
@@ -130,7 +130,8 @@ softpipe_texture_create(struct pipe_screen *screen,
    pipe_reference_init(&spt->base.reference, 1);
    spt->base.screen = screen;
 
-   if (spt->base.tex_usage & PIPE_TEXTURE_USAGE_DISPLAY_TARGET) {
+   if (spt->base.tex_usage & (PIPE_TEXTURE_USAGE_DISPLAY_TARGET |
+                              PIPE_TEXTURE_USAGE_PRIMARY)) {
       if (!softpipe_displaytarget_layout(screen, spt))
          goto fail;
    }