mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
ac/gfx11: fix the scratch buffer
We didn't use the value that we computed. Reviewed-by: Mihai Preda <mhpreda@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16509>
This commit is contained in:
parent
af880e591e
commit
ba02ed91a6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user