st/mesa: clamp Max program param limits
authorMarek Olšák <maraeo@gmail.com>
Mon, 12 Sep 2011 10:46:45 +0000 (12:46 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 12 Sep 2011 14:55:21 +0000 (16:55 +0200)
commitf37a5081b229b020553c45e32e9888af77cfd3d6
tree92d4801da0818307f967eacc7b60bacc6ffc6c49
parent4682e706012fe26627a2f827db01b5068cc62814
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>
src/mesa/state_tracker/st_extensions.c