X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fbroadcom%2Fcommon%2Fv3d_limits.h;h=d65edddab741e81251e658b9b81e007b598ca7c6;hp=367806dbe48d70036f52ebe061712c49c2ad758c;hb=d6b0786a380b95ce9305535c0012454f2f7055a0;hpb=3e743d8cd86c09f68d840604c9df52e0499af64f diff --git a/src/broadcom/common/v3d_limits.h b/src/broadcom/common/v3d_limits.h index 367806dbe48..d65edddab74 100644 --- a/src/broadcom/common/v3d_limits.h +++ b/src/broadcom/common/v3d_limits.h @@ -24,15 +24,22 @@ #ifndef V3D_LIMITS_H #define V3D_LIMITS_H +/* Number of channels a QPU thread executes in parallel. Also known as + * gl_SubGroupSizeARB. + */ +#define V3D_CHANNELS 16 + #define V3D_MAX_FS_INPUTS 64 #define V3D_MAX_VS_INPUTS 64 +#define V3D_MAX_ANY_STAGE_INPUTS MAX2(V3D_MAX_VS_INPUTS, V3D_MAX_FS_INPUTS) /* Not specifically a hardware limit, just coordination between compiler and * driver. */ -#define V3D_MAX_TEXTURE_SAMPLERS 32 +#define V3D_MAX_TEXTURE_SAMPLERS 16 -#define V3D_MAX_MIP_LEVELS 12 +/* The HW can do 16384 (15), but we run into hangs when we expose that. */ +#define V3D_MAX_MIP_LEVELS 13 #define V3D_MAX_SAMPLES 4