From 5f00819cb382bdb70c29e2db3c6ff22a879bf10f Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 16 Sep 2010 10:45:52 +0100 Subject: 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. --- src/gallium/drivers/llvmpipe/lp_clear.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/llvmpipe/lp_clear.c') 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 ); } -- cgit v1.2.3