From: Jakob Bornecrantz Date: Wed, 5 Aug 2009 18:13:55 +0000 (+0100) Subject: softpipe: Also defere primary textures to backend X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6160c8be5748455574ddde8ac373e14d86c4f3a9;p=mesa.git softpipe: Also defere primary textures to backend --- 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; }