Mesa (master): zink: add bitfield_reverse handling to ntv

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 26 14:21:26 UTC 2020


Module: Mesa
Branch: master
Commit: 90d34558488effc988d11e692ecf870084a6f709
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=90d34558488effc988d11e692ecf870084a6f709

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Jun 12 10:19:56 2020 -0400

zink: add bitfield_reverse handling to ntv

fixes several piglit tests

Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5562>

---

 src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 1 +
 1 file changed, 1 insertion(+)

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 d821ae2277d..553213bf94d 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
@@ -1197,6 +1197,7 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    UNOP(nir_op_f2u32, SpvOpConvertFToU)
    UNOP(nir_op_i2f32, SpvOpConvertSToF)
    UNOP(nir_op_u2f32, SpvOpConvertUToF)
+   UNOP(nir_op_bitfield_reverse, SpvOpBitReverse)
 #undef UNOP
 
    case nir_op_inot:



More information about the mesa-commit mailing list