Commit f37a5081 authored by Marek Olšák's avatar Marek Olšák

st/mesa: clamp Max program param limits

Setting just MAX_PROGRAM_ENV_PARAMS to 4096 breaks everything,
so let's do this instead.

This fixes: Brian Paul's avatarBrian Paul <>
parent 4682e706
......@@ -176,8 +176,8 @@ void st_init_limits(struct st_context *st)
/* Gallium doesn't really care about local vs. env parameters so use the
* same limits.
pc->MaxLocalParams = pc->MaxParameters;
pc->MaxEnvParams = pc->MaxParameters;
pc->MaxLocalParams = MIN2(pc->MaxParameters, MAX_PROGRAM_LOCAL_PARAMS);
pc->MaxEnvParams = MIN2(pc->MaxParameters, MAX_PROGRAM_ENV_PARAMS);
options->EmitNoNoise = TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment