Mesa (main): ac/gfx11: fix the scratch buffer

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 17 10:58:38 UTC 2022


Module: Mesa
Branch: main
Commit: ba02ed91a60839f2a6dc6a89fd9de1144b0788aa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ba02ed91a60839f2a6dc6a89fd9de1144b0788aa

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri May 13 22:04:05 2022 -0400

ac/gfx11: fix the scratch buffer

We didn't use the value that we computed.

Reviewed-by: Mihai Preda <mhpreda at gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16509>

---

 src/amd/common/ac_shader_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/common/ac_shader_util.c b/src/amd/common/ac_shader_util.c
index 2cb2bedb03a..33002f78d95 100644
--- a/src/amd/common/ac_shader_util.c
+++ b/src/amd/common/ac_shader_util.c
@@ -841,6 +841,6 @@ void ac_get_scratch_tmpring_size(const struct radeon_info *info, bool compute,
       max_scratch_waves /= info->num_se; /* WAVES is per SE for SPI_TMPRING_SIZE. */
 
    /* TODO: We could decrease WAVES to make the whole buffer fit into the infinity cache. */
-   *tmpring_size = S_0286E8_WAVES(info->max_scratch_waves) |
+   *tmpring_size = S_0286E8_WAVES(max_scratch_waves) |
                    S_0286E8_WAVESIZE(*max_seen_bytes_per_wave >> size_shift);
 }



More information about the mesa-commit mailing list