intel/fs: Use the correct logical op for global float atomics
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 14 Jul 2020 19:40:35 +0000 (14:40 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 05:01:34 +0000 (05:01 +0000)
Fixes: e644ed468f98 "intel/fs: Implement nir_intrinsic_global_atomic_*"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5992>

src/intel/compiler/brw_fs_nir.cpp

index f188d8989235c7359ecd74203d3d5aadd5fb11ad..15df3dc77634b82999bd21652b024a5aa555a26b 100644 (file)
@@ -5477,7 +5477,7 @@ fs_visitor::nir_emit_global_atomic_float(const fs_builder &bld,
       data = tmp;
    }
 
-   bld.emit(SHADER_OPCODE_A64_UNTYPED_ATOMIC_LOGICAL,
+   bld.emit(SHADER_OPCODE_A64_UNTYPED_ATOMIC_FLOAT_LOGICAL,
             dest, addr, data, brw_imm_ud(op));
 }