diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-03-13 03:12:11 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-03-14 03:12:34 +0100 |
commit | 0f84ddad29284b407c6bbef0b731201056d40324 (patch) | |
tree | 69bf6fbf119e0d200dcfef95f19c9e42298366fb /src/glsl/glcpp | |
parent | 110f5e2056f80d0b87f2a4388bc35727070ba6d5 (diff) |
ir_to_mesa: do not check the number of uniforms against hw limits
The r300 compiler can eliminate unused uniforms and remap uniform locations
if their number surpasses hardware limits, so the limit is actually
NumParameters + NumUnusedParameters. This is important for some apps
under Wine to run.
Wine sometimes declares a uniform array of 256 vec4's and some Wine-specific
constants on top of that, so in total there is more uniforms than r300 can
handle. This was the main motivation for implementing the elimination
of unused constants.
We should allow drivers to implement fail & recovery paths where it makes
sense, so giving up too early especially when comes to uniforms is not
so good idea, though I agree there should be some hard limit for all drivers.
This patch fixes:
- glsl-fs-uniform-array-5
- glsl-vs-large-uniform-array
on drivers which can eliminate unused uniforms.
Diffstat (limited to 'src/glsl/glcpp')
0 files changed, 0 insertions, 0 deletions