aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_compute_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-01-28 19:49:56 -0500
committerMarek Olšák <[email protected]>2019-02-06 11:17:21 -0500
commit5068dec5deb3d02693a7d7b1579b1738237e3b6d (patch)
tree5981f96c1570bcd7784ee1ee691aa8b95aa7124b /src/gallium/drivers/radeonsi/si_compute_blit.c
parent7d4c935654f7792f99ff0c45507e43ec557f0266 (diff)
radeonsi: clear allocator_zeroed_memory with SDMA
so that it can be used in parallel IBs. This also removes the SO_FILLED_SIZE hack. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute_blit.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute_blit.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c
index 1ea0d7517df..f5e9c02dd10 100644
--- a/src/gallium/drivers/radeonsi/si_compute_blit.c
+++ b/src/gallium/drivers/radeonsi/si_compute_blit.c
@@ -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,