From 537176181ec2a6ba05dc6be2f2c82c0e19de0c5b Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Sun, 4 Sep 2022 10:17:23 +0000 Subject: [PATCH] llvmpipe: bump LP_MAX_THREADS to 32 On my ppc64le machine with 32 hardware threads, this speeds up OpenArena (1920x1200) from 7.2 fps to 8.1 fps. Reviewed-by: Emma Anholt Reviewed-by: Roland Scheidegger Part-of: --- docs/drivers/llvmpipe.rst | 2 +- src/gallium/drivers/llvmpipe/lp_limits.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/drivers/llvmpipe.rst b/docs/drivers/llvmpipe.rst index cc1e1aa2321..404a9efb2e5 100644 --- a/docs/drivers/llvmpipe.rst +++ b/docs/drivers/llvmpipe.rst @@ -8,7 +8,7 @@ The Gallium llvmpipe driver is a software rasterizer that uses LLVM to do runtime code generation. Shaders, point/line/triangle rasterization and vertex processing are implemented with LLVM IR which is translated to x86, x86-64, or ppc64le machine code. Also, the driver is -multithreaded to take advantage of multiple CPU cores (up to 8 at this +multithreaded to take advantage of multiple CPU cores (up to 32 at this time). It's the fastest software rasterizer for Mesa. Requirements diff --git a/src/gallium/drivers/llvmpipe/lp_limits.h b/src/gallium/drivers/llvmpipe/lp_limits.h index 2c90a4fff1e..13fe9e11812 100644 --- a/src/gallium/drivers/llvmpipe/lp_limits.h +++ b/src/gallium/drivers/llvmpipe/lp_limits.h @@ -66,7 +66,7 @@ #define LP_MAX_SAMPLES 4 -#define LP_MAX_THREADS 16 +#define LP_MAX_THREADS 32 /**