diff options
author | Paul Berry <[email protected]> | 2013-10-23 13:36:25 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-24 21:14:26 -0700 |
commit | fe36154ff3b2c095cf21462dd7ed6b5ae374fccc (patch) | |
tree | 9ba92a06cf9bc3f5c5cfea6e3f8ece576c48a52f /src/glx/indirect_vertex_array.c | |
parent | a453242fda0a57012a790e67053545211c0486ed (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 'src/glx/indirect_vertex_array.c')
0 files changed, 0 insertions, 0 deletions