From df6682d7823e8334ed90462ed31abfc2107358bd Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 3 Jul 2020 09:47:50 +1000 Subject: llvmpipe: bump texture/scene limits to enable GL 4.1 Do we need to make this more dynamic? or have some options for vmware embedded? Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_limits.h | 6 +++--- src/gallium/drivers/llvmpipe/lp_scene.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gallium/drivers/llvmpipe/lp_limits.h b/src/gallium/drivers/llvmpipe/lp_limits.h index 8ce15c33028..1b8a37e2bb0 100644 --- a/src/gallium/drivers/llvmpipe/lp_limits.h +++ b/src/gallium/drivers/llvmpipe/lp_limits.h @@ -48,10 +48,10 @@ * llvm GEP as well as avx2 gather use signed offsets). */ #define LP_MAX_TEXTURE_SIZE (2 * 1024 * 1024 * 1024ULL) -#define LP_MAX_TEXTURE_2D_LEVELS 14 /* 8K x 8K for now */ +#define LP_MAX_TEXTURE_2D_LEVELS 15 /* 16K x 16K for now */ #define LP_MAX_TEXTURE_3D_LEVELS 12 /* 2K x 2K x 2K for now */ -#define LP_MAX_TEXTURE_CUBE_LEVELS 14 /* 8K x 8K for now */ -#define LP_MAX_TEXTURE_ARRAY_LAYERS 512 /* 8K x 512 / 8K x 8K x 512 */ +#define LP_MAX_TEXTURE_CUBE_LEVELS 15 /* 16K x 16K for now */ +#define LP_MAX_TEXTURE_ARRAY_LAYERS 2048 /* 16K x 2048 / 16K x 16K x 2048 */ /** This must be the larger of LP_MAX_TEXTURE_2D/3D_LEVELS */ diff --git a/src/gallium/drivers/llvmpipe/lp_scene.h b/src/gallium/drivers/llvmpipe/lp_scene.h index 9f90dbbb02a..679e2c07b28 100644 --- a/src/gallium/drivers/llvmpipe/lp_scene.h +++ b/src/gallium/drivers/llvmpipe/lp_scene.h @@ -60,7 +60,7 @@ struct lp_rast_state; /* Scene temporary storage is clamped to this size: */ -#define LP_SCENE_MAX_SIZE (9*1024*1024) +#define LP_SCENE_MAX_SIZE (36*1024*1024) /* The maximum amount of texture storage referenced by a scene is * clamped to this size: -- cgit v1.2.3