aco: do not use ds_{read,write}2 on GFX6
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 7 Feb 2020 11:53:31 +0000 (12:53 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 7 Feb 2020 13:17:06 +0000 (14:17 +0100)
commit4b978cd950cef844afce07993ddb697779e5648d
tree91855bcfb739bcee95de102019efad0d851a3a7e
parentda76dfb5159c2ca8ee24d64a5f85a68f28b70c65
aco: do not use ds_{read,write}2 on GFX6

According to LLVM, these instructions have a bounds checking bug.
LLVM only uses them on GFX7+.

This fixes broken geometry in Assassins Creed Origins.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2489
Fixes: 4a553212fa1 ("radv: enable ACO support for GFX6")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3746>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3746>
src/amd/compiler/aco_instruction_selection.cpp