diff options
author | Bryan Cain <[email protected]> | 2011-09-05 14:54:37 -0500 |
---|---|---|
committer | Bryan Cain <[email protected]> | 2011-09-05 19:51:29 -0500 |
commit | 4e64cfbb4ec92877803e70257af8b97c484c00c0 (patch) | |
tree | 475e304989741806f2cd9544d3ca4d38c91c006b /src/mesa/drivers/dri | |
parent | f9b7d3bd4a744537db29f8688cf4c4109fb19ab1 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 6ef0fcb313c..5ea7385f94b 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -253,8 +253,10 @@ GLboolean brwCreateContext( int api, /* If we're using the new shader backend, we require integer uniforms * stored as actual integers. */ - if (brw->new_vs_backend) + if (brw->new_vs_backend) { ctx->Const.NativeIntegers = true; + ctx->Const.UniformBooleanTrue = 1; + } return GL_TRUE; } |