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_setup.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c') diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index e6a8196761..6674d281d1 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -651,11 +651,12 @@ lp_setup_set_fragment_sampler_views(struct lp_setup_context *setup, jit_tex->row_stride[j] = lp_tex->row_stride[j]; jit_tex->img_stride[j] = lp_tex->img_stride[j]; - if (!jit_tex->data[j]) { + if ((LP_PERF & PERF_TEX_MEM) || + !jit_tex->data[j]) { /* out of memory - use dummy tile memory */ jit_tex->data[j] = lp_dummy_tile; - jit_tex->width = TILE_SIZE; - jit_tex->height = TILE_SIZE; + jit_tex->width = TILE_SIZE/8; + jit_tex->height = TILE_SIZE/8; jit_tex->depth = 1; jit_tex->last_level = 0; jit_tex->row_stride[j] = 0; -- cgit v1.2.3