diff options
author | José Fonseca <[email protected]> | 2012-07-06 19:14:37 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-08-28 15:18:43 +0100 |
commit | bc8509b43b591796fa7c3b7a7497053eb298dc8b (patch) | |
tree | daa86e32bec95fd54dd74101da04651bcbc3a000 /src/gallium/drivers/llvmpipe/lp_limits.h | |
parent | 6463eb013f645440d252b8b390e1c6e3c1212b7e (diff) |
llvmpipe: Bump the maximum texture size (in pixels).
But cap the size in bytes, to avoid depleting the whole system memory,
with humongus textures.
Tested with max-texture-size piglit test.
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_limits.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_limits.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_limits.h b/src/gallium/drivers/llvmpipe/lp_limits.h index 43b00c56a5f..fac34044089 100644 --- a/src/gallium/drivers/llvmpipe/lp_limits.h +++ b/src/gallium/drivers/llvmpipe/lp_limits.h @@ -43,8 +43,9 @@ /** * Max texture sizes */ -#define LP_MAX_TEXTURE_2D_LEVELS 13 /* 4K x 4K for now */ -#define LP_MAX_TEXTURE_3D_LEVELS 10 /* 512 x 512 x 512 for now */ +#define LP_MAX_TEXTURE_SIZE (1 * 1024 * 1024 * 1024ULL) /* 1GB for now */ +#define LP_MAX_TEXTURE_2D_LEVELS 14 /* 8K x 8K for now */ +#define LP_MAX_TEXTURE_3D_LEVELS 11 /* 1K x 1K x 1K for now */ /** This must be the larger of LP_MAX_TEXTURE_2D/3D_LEVELS */ |