wined3d: Reserve additional GLSL constants on some drivers.
authorStefan Dösinger <stefan@codeweavers.com>
Tue, 14 Apr 2009 18:33:15 +0000 (20:33 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 20 Apr 2009 14:38:39 +0000 (16:38 +0200)
commit39877a2ad2365c5ff28ab20d8aa428241d4d8217
tree62616e5514eaa1a25fab831073f65c4df2030d8e
parent78d26a659d14b050c90b1393580bc0d13b36e7e5
wined3d: Reserve additional GLSL constants on some drivers.

Some drivers apparently need private constants, or don't have an efficient
immval packing. For example, MacOS seems to need 1 float for each different
relative addressing offset. fglrx has the same issue, although it is more
efficient in general

Previously this worked on most drivers because the 16 + 4 reserved int and
bool constants kept the problem hidden. Now that we are more aggressive with
uniforms we have to keep free room for some drivers.
dlls/wined3d/directx.c
dlls/wined3d/wined3d_gl.h