Module: Mesa Branch: master Commit: b4eff831803b0cb9500ae5607fe7620533b28a3e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4eff831803b0cb9500ae5607fe7620533b28a3e
Author: Caio Marcelo de Oliveira Filho <[email protected]> Date: Thu Apr 25 01:30:24 2019 -0700 spirv: Implement SpvOpCopyLogical This is the same as SpvOpCopyObject but without the type checking, which is how vtn_composite_copy works, so we just need to hook the operation. Reviewed-by: Jason Ekstrand <[email protected]> --- src/compiler/spirv/spirv_to_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 8efe0fa285c..5aac1374710 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -3252,6 +3252,7 @@ vtn_handle_composite(struct vtn_builder *b, SpvOp opcode, w + 5, count - 5); break; + case SpvOpCopyLogical: case SpvOpCopyObject: val->ssa = vtn_composite_copy(b, vtn_ssa_value(b, w[3])); break; @@ -4445,6 +4446,7 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode, case SpvOpCompositeConstruct: case SpvOpCompositeExtract: case SpvOpCompositeInsert: + case SpvOpCopyLogical: case SpvOpCopyObject: vtn_handle_composite(b, opcode, w, count); break; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
