summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-10-23 13:36:25 -0700
committerPaul Berry <[email protected]>2013-10-24 21:14:26 -0700
commitfe36154ff3b2c095cf21462dd7ed6b5ae374fccc (patch)
tree9ba92a06cf9bc3f5c5cfea6e3f8ece576c48a52f /include
parenta453242fda0a57012a790e67053545211c0486ed (diff)
i965: Fix gl_MaxCombinedTextureImageUnits.
We've always overriden ctx->Const.{Vertex,Fragment}Program.MaxTextureImageUnits to reflect the number of texture image units supported by the hardware (rather than using the default values assigned by Mesa core) so it seems sensible to do that for GeometryProgram.MaxTextureImageUnits too. We set it to 0 if geometry shaders aren't supported. Once that is done, we can just unconditionally add GeometryProgram.MaxTextureImageUnits to MaxCombinedTextureImageUnits. Fixes piglit test "spec/glsl-1.50/built-in constants/gl_MaxCombinedTextureImageUnits". Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions