aco: update waitcnt on GFX11
Not sure if the vmcnt field can use more than 0x3f bits. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16369>
This commit is contained in:
committed by
Marge Bot
parent
765aa36b9d
commit
7647097d3d
@@ -779,6 +779,11 @@ wait_imm::pack(enum chip_class chip) const
|
||||
uint16_t imm = 0;
|
||||
assert(exp == unset_counter || exp <= 0x7);
|
||||
switch (chip) {
|
||||
case GFX11:
|
||||
assert(lgkm == unset_counter || lgkm <= 0x3f);
|
||||
assert(vm == unset_counter || vm <= 0x3f);
|
||||
imm = ((vm & 0x3f) << 10) | ((lgkm & 0x3f) << 4) | (exp & 0x7);
|
||||
break;
|
||||
case GFX10:
|
||||
case GFX10_3:
|
||||
assert(lgkm == unset_counter || lgkm <= 0x3f);
|
||||
|
||||
Reference in New Issue
Block a user