diff options
author | Erik Faye-Lund <[email protected]> | 2019-07-11 14:31:42 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:46 +0000 |
commit | 60bfee1f31745a4d6241a0e9f9f99b97b77b2ce8 (patch) | |
tree | 939defc657fa38c9f1a4881e13a45e4fe3f87b4a /src/gallium/drivers | |
parent | 4e60d4d52af358fc81332c6121d2e556bf302e73 (diff) |
zink: add some opcodes
Acked-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 074bc007504..775b68116f0 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -786,6 +786,8 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu) UNOP(nir_op_fneg, SpvOpFNegate) UNOP(nir_op_fddx, SpvOpDPdx) UNOP(nir_op_fddy, SpvOpDPdy) + UNOP(nir_op_f2i32, SpvOpConvertFToS) + UNOP(nir_op_f2u32, SpvOpConvertFToU) #undef UNOP #define BUILTIN_UNOP(nir_op, spirv_op) \ |