radeonsi: revert an accidental change in si_clear_buffer
authorMarek Olšák <marek.olsak@amd.com>
Tue, 28 Apr 2020 16:51:22 +0000 (12:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 22:27:31 +0000 (22:27 +0000)
The change was in: 7b0b085c94347cb9c94d88e11a64a6c341d95477

Fixes: 7b0b085c943 ("radeonsi: drop the negation from fmask_is_not_identity")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4761>

src/gallium/drivers/radeonsi/si_compute_blit.c

index d04d58ead2058936c00dedd0b47729c5a3c7ef7a..8772475d12408cecaa65dc6123be5babfe446411 100644 (file)
@@ -328,7 +328,7 @@ void si_clear_buffer(struct si_context *sctx, struct pipe_resource *dst, uint64_
        * about buffer placements.
        */
       if (clear_value_size > 4 || (!force_cpdma && clear_value_size == 4 && offset % 4 == 0 &&
-                                   (size > 32 * 1024 || sctx->chip_class <= GFX9))) {
+                                   (size > 32 * 1024 || sctx->chip_class <= GFX8))) {
          si_compute_do_clear_or_copy(sctx, dst, offset, NULL, 0, aligned_size, clear_value,
                                      clear_value_size, coher);
       } else {