[Mesa-dev] [PATCH 3/3] llvmpipe: bump 3d and cube map limits to 2048 and 8192 respectively

Brian Paul brianp at vmware.com
Wed Jun 5 17:56:25 PDT 2013


On 06/05/2013 05:44 PM, sroland at vmware.com wrote:
> From: Roland Scheidegger <sroland at vmware.com>
>
> These should just work (?), required by d3d10. Too large resources will
> get thrown out separately anyway.

Yeah, that was the point of my pipe_screen::can_create_resource() change 
a while back.  While the 3D texture size is now 1K^3, the 
LP_MAX_TEXTURE_SIZE limit should usually kick in before that.

Reviewed-by: Brian Paul <brianp at vmware.com>

> ---
>   src/gallium/drivers/llvmpipe/lp_limits.h |    4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/llvmpipe/lp_limits.h b/src/gallium/drivers/llvmpipe/lp_limits.h
> index c7905b8..af31b35 100644
> --- a/src/gallium/drivers/llvmpipe/lp_limits.h
> +++ b/src/gallium/drivers/llvmpipe/lp_limits.h
> @@ -45,8 +45,8 @@
>    */
>   #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 */
> -#define LP_MAX_TEXTURE_CUBE_LEVELS 13  /* 4K x 4K 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 */
>
>
>



More information about the mesa-dev mailing list