summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_clear.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-22 11:01:41 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-22 11:02:24 +0100
commita5b87f249ef79b1a8d8b9dbe72879b7ac9eb133c (patch)
treee214e30dc5bce60c6068ccf63e8536676b931d79 /src/gallium/drivers/softpipe/sp_clear.c
parent09b668615852eb28cb6289baf84faaf3b6ccc3c2 (diff)
softpipe: implement SP_NO_RAST env var
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_clear.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_clear.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_clear.c b/src/gallium/drivers/softpipe/sp_clear.c
index 39aed151c7..1236706891 100644
--- a/src/gallium/drivers/softpipe/sp_clear.c
+++ b/src/gallium/drivers/softpipe/sp_clear.c
@@ -49,6 +49,9 @@ softpipe_clear(struct pipe_context *pipe, struct pipe_surface *ps,
struct softpipe_context *softpipe = softpipe_context(pipe);
uint i;
+ if (softpipe->no_rast)
+ return;
+
#if 0
softpipe_update_derived(softpipe); /* not needed?? */
#endif