diff options
author | Jason Ekstrand <[email protected]> | 2018-10-19 09:35:49 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-26 11:45:29 -0500 |
commit | ff45649bc2fc3b048a8ae19cd67ec1e8e8eeb7a8 (patch) | |
tree | dd63a76053dc0c58fb7dfc5f15930ac837fab1f3 /src/compiler/spirv/vtn_alu.c | |
parent | 249e32ab17bdbe1f26449079b0eafd3391b52d0f (diff) |
nir/builder: Add a nir_imm_true/false helpers
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_alu.c')
-rw-r--r-- | src/compiler/spirv/vtn_alu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/spirv/vtn_alu.c b/src/compiler/spirv/vtn_alu.c index 38ccd62ae17..6860e7dc090 100644 --- a/src/compiler/spirv/vtn_alu.c +++ b/src/compiler/spirv/vtn_alu.c @@ -494,7 +494,7 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode, default: vtn_fail("invalid number of components"); } val->ssa->def = nir_build_alu(&b->nb, op, src[0], - nir_imm_int(&b->nb, NIR_FALSE), + nir_imm_false(&b->nb), NULL, NULL); } break; @@ -511,7 +511,7 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode, default: vtn_fail("invalid number of components"); } val->ssa->def = nir_build_alu(&b->nb, op, src[0], - nir_imm_int(&b->nb, NIR_TRUE), + nir_imm_true(&b->nb), NULL, NULL); } break; |