diff options
author | Bryan Cain <[email protected]> | 2012-01-07 15:28:27 -0600 |
---|---|---|
committer | Bryan Cain <[email protected]> | 2012-01-07 15:33:36 -0600 |
commit | 673535f6071e512b18ac6da622e15bdc45ebf0a0 (patch) | |
tree | 974aeee1b96f01f2bdcd2409852260fa848940ef /src | |
parent | c4529d10bed098b8d3d694f2a333f9afabbabbf9 (diff) |
glsl_to_tgsi: fix emission of boolean constants
We use 0xffffffff for true, but visit(ir_constant *) was emitting 1.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index ddd5366a23b..539701173f8 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -2374,7 +2374,7 @@ glsl_to_tgsi_visitor::visit(ir_constant *ir) gl_type = native_integers ? GL_BOOL : GL_FLOAT; for (i = 0; i < ir->type->vector_elements; i++) { if (native_integers) - values[i].b = ir->value.b[i]; + values[i].u = ir->value.b[i] ? ~0 : 0; else values[i].f = ir->value.b[i]; } |