Mesa (master): softpipe: Also defere primary textures to backend
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Wed Aug 5 17:34:00 UTC 2009
Module: Mesa
Branch: master
Commit: 6160c8be5748455574ddde8ac373e14d86c4f3a9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6160c8be5748455574ddde8ac373e14d86c4f3a9
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Wed Aug 5 19:13:55 2009 +0100
softpipe: Also defere primary textures to backend
---
src/gallium/drivers/softpipe/sp_texture.c | 3 ++-
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 0c773e4..4af520e 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;
}
More information about the mesa-commit
mailing list