summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-08-05 19:13:55 +0100
committerJakob Bornecrantz <[email protected]>2009-08-05 19:29:29 +0100
commit6160c8be5748455574ddde8ac373e14d86c4f3a9 (patch)
tree793f814428efb79500c964aea3d261ba1223da5f /src/gallium/drivers/softpipe
parentac3de85eb6af680f2884194b40ada7b3e1edda8a (diff)
softpipe: Also defere primary textures to backend
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index 0c773e484b6..4af520e3fd2 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -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;
}