radv: add a missing async compute workaround for Tonga/Iceland
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Nov 2023 14:06:12 +0000 (15:06 +0100)
committerEric Engestrom <eric@engestrom.ch>
Sat, 18 Nov 2023 21:15:13 +0000 (21:15 +0000)
commite8c975a64232d6d9b1217d57a6eafa9e62f754c0
tree3eb863ee7945e35fad811053c8c7c943f89c05e0
parentdd46e0b6d3331070be2b0b04f481bf37ffa548a8
radv: add a missing async compute workaround for Tonga/Iceland

After digging into PAL code again, I figured that Tonga/Iceland are
both affected by a hw bug related to async compute dispatches.

The solution is to change the "threadgroup" dimension mode to the
"thread" dimension mode unconditionally.

This should fix a bunch of issues related to RADV_DEBUG=nocompute on
these GPUs.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7551
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6334
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4679
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26207>
(cherry picked from commit ec82b4294432aa6da40517655a4f8af2767176a2)
.pick_status.json
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h
src/amd/vulkan/radv_cmd_buffer.c