i965/vec4/nir: no need to use surface_access:: to call emit_untyped_atomic
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 4 Mar 2016 17:20:09 +0000 (18:20 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 8 Mar 2016 07:22:26 +0000 (08:22 +0100)
Now that brw_vec4_visitor::emit_untyped_atomic was removed, there is no need
to explicitly set it.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp

index 0e716cf3d82a258b23f34b8737aeb35ef2f0e2d3..52977f1c12b959d97d1ddb1f2e30307d3e8f9581 100644 (file)
@@ -878,12 +878,11 @@ vec4_visitor::nir_emit_ssbo_atomic(int op, nir_intrinsic_instr *instr)
    const vec4_builder bld =
       vec4_builder(this).at_end().annotate(current_annotation, base_ir);
 
-   src_reg atomic_result =
-      surface_access::emit_untyped_atomic(bld, surface, offset,
-                                          data1, data2,
-                                          1 /* dims */, 1 /* rsize */,
-                                          op,
-                                          BRW_PREDICATE_NONE);
+   src_reg atomic_result = emit_untyped_atomic(bld, surface, offset,
+                                               data1, data2,
+                                               1 /* dims */, 1 /* rsize */,
+                                               op,
+                                               BRW_PREDICATE_NONE);
    dest.type = atomic_result.type;
    bld.MOV(dest, atomic_result);
 }