mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-25 08:20:34 +00:00
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: https://bugs.freedesktop.org/show_bug.cgi?id=40767 Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
4682e70601
commit
f37a5081b2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user