diff options
author | Keith Whitwell <[email protected]> | 2010-09-16 10:45:52 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-09-16 17:34:19 +0100 |
commit | 5f00819cb382bdb70c29e2db3c6ff22a879bf10f (patch) | |
tree | 6c28495f4caef7c8610189ed011f50596b0e545c /src/gallium/drivers/llvmpipe/lp_clear.c | |
parent | 045ee4601179c44f815ce3842ef900b36d54c914 (diff) |
llvmpipe: add LP_PERF flag to disable various aspects of rasterization
Allows disabling various operations (mainly texture-related, but
will grow) to try & identify bottlenecks.
Unlike LP_DEBUG, this is active even in release builds - which is
necessary for performance investigation.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_clear.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_clear.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_clear.c b/src/gallium/drivers/llvmpipe/lp_clear.c index 3e8c4109251..b486b243eb5 100644 --- a/src/gallium/drivers/llvmpipe/lp_clear.c +++ b/src/gallium/drivers/llvmpipe/lp_clear.c @@ -36,6 +36,7 @@ #include "lp_clear.h" #include "lp_context.h" #include "lp_setup.h" +#include "lp_debug.h" /** @@ -54,5 +55,8 @@ llvmpipe_clear(struct pipe_context *pipe, if (llvmpipe->no_rast) return; + if (LP_PERF & PERF_NO_DEPTH) + buffers &= ~PIPE_CLEAR_DEPTHSTENCIL; + lp_setup_clear( llvmpipe->setup, rgba, depth, stencil, buffers ); } |