radv: Make the compute scratch waves per SE as well.

Fixes: 278e533ec9 ("radv: update scratch buffer registers on GFX11")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19488>
(cherry picked from commit d876ddc920)
This commit is contained in:
Bas Nieuwenhuizen
2022-10-30 23:33:34 +01:00
committed by Dylan Baker
parent 7ade4ab5d5
commit 117ac5ca01
2 changed files with 3 additions and 1 deletions

View File

@@ -1786,7 +1786,7 @@
"description": "radv: Make the compute scratch waves per SE as well.",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "278e533ec9c29d68b661bc27cbfbe6bca4f57094"
},

View File

@@ -4246,6 +4246,8 @@ radv_emit_compute_scratch(struct radv_device *device, struct radeon_cmdbuf *cs,
radeon_set_sh_reg_seq(cs, R_00B840_COMPUTE_DISPATCH_SCRATCH_BASE_LO, 2);
radeon_emit(cs, scratch_va >> 8);
radeon_emit(cs, scratch_va >> 40);
waves /= info->num_se;
}
radeon_set_sh_reg_seq(cs, R_00B900_COMPUTE_USER_DATA_0, 2);