From: Marek Olšák Date: Sun, 21 Nov 2010 21:02:02 +0000 (+0100) Subject: st/mesa: set MaxUniformComponents X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7c74a7dfab789496761226fe62a08f2d9fea5c7;p=mesa.git st/mesa: set MaxUniformComponents Signed-off-by: Brian Paul --- diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 8c3fa0eef45..e72caa3842c 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -164,6 +164,7 @@ void st_init_limits(struct st_context *st) pc->MaxNativeTemps = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_TEMPS); pc->MaxNativeAddressRegs = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_ADDRS); pc->MaxNativeParameters = screen->get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_CONSTS); + pc->MaxUniformComponents = 4 * MIN2(pc->MaxNativeParameters, MAX_UNIFORMS); options->EmitNoNoise = TRUE;