mesa: add a UniformBooleanTrue option

Drivers supporting native integers set UniformBooleanTrue to the integer value
that should be used for true when uploading uniform booleans.  This is ~0 for
Gallium and 1 for i965.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Bryan Cain
2011-09-05 14:54:37 -05:00
parent f9b7d3bd4a
commit 4e64cfbb4e
4 changed files with 14 additions and 2 deletions

View File

@@ -207,6 +207,7 @@ void st_init_limits(struct st_context *st)
c->MaxProgramTexelOffset = screen->get_param(screen, PIPE_CAP_MAX_TEXEL_OFFSET);
c->GLSLVersion = 120;
c->UniformBooleanTrue = ~0;
}
}