intel/vec4: Support scoped_memory_barrier
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 7 Jan 2020 22:14:56 +0000 (16:14 -0600)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jan 2020 17:23:46 +0000 (17:23 +0000)
Fixes: 06aecb14c0476 "anv: Implement VK_KHR_vulkan_memory_model"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3307>

src/intel/compiler/brw_vec4_nir.cpp

index 416b6514ad10969da353bef0f2e59951ef88ae86..03fda5e9aaa962c7ef1df4c96533bea1854b9d9b 100644 (file)
@@ -700,7 +700,8 @@ vec4_visitor::nir_emit_intrinsic(nir_intrinsic_instr *instr)
       break;
    }
 
-   case nir_intrinsic_memory_barrier: {
+   case nir_intrinsic_memory_barrier:
+   case nir_intrinsic_scoped_memory_barrier: {
       const vec4_builder bld =
          vec4_builder(this).at_end().annotate(current_annotation, base_ir);
       const dst_reg tmp = bld.vgrf(BRW_REGISTER_TYPE_UD, 2);