zink: add bitfield_reverse handling to ntv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 12 Jun 2020 14:19:56 +0000 (10:19 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 14:07:35 +0000 (14:07 +0000)
fixes several piglit tests

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

src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index d821ae2277d824e768626d95a03400c6829980a7..553213bf94d28988ac56a7db98e2b0fe44d2a063 100644 (file)
@@ -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: