radeonsi: clear allocator_zeroed_memory with SDMA
[mesa.git] / src / gallium / drivers / radeonsi / si_compute_blit.c
index 1ea0d7517dfd357ae4e954acbe09467322c5de83..f5e9c02dd1086247310aade84087f71839f8288f 100644 (file)
@@ -275,15 +275,8 @@ static void si_pipe_clear_buffer(struct pipe_context *ctx,
                                 const void *clear_value,
                                 int clear_value_size)
 {
-       enum si_coherency coher;
-
-       if (dst->flags & SI_RESOURCE_FLAG_SO_FILLED_SIZE)
-               coher = SI_COHERENCY_CP;
-       else
-               coher = SI_COHERENCY_SHADER;
-
        si_clear_buffer((struct si_context*)ctx, dst, offset, size, (uint32_t*)clear_value,
-                       clear_value_size, coher);
+                       clear_value_size, SI_COHERENCY_SHADER);
 }
 
 void si_copy_buffer(struct si_context *sctx,