mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
radv: drop the amdgpu-skip-threshold=1 workaround for LLVM 8
This workaround has been introduced by 135e4d434f for fixing
DXVK GPU hangs with many games. It is no longer needed since
LLVM r345718.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
576040f2e5
commit
0a7e767e58
1 changed files with 9 additions and 3 deletions
|
|
@ -548,9 +548,15 @@ static void radv_init_llvm_target()
|
|||
*
|
||||
* "mesa" is the prefix for error messages.
|
||||
*/
|
||||
const char *argv[3] = { "mesa", "-simplifycfg-sink-common=false",
|
||||
"-amdgpu-skip-threshold=1" };
|
||||
LLVMParseCommandLineOptions(3, argv, NULL);
|
||||
if (HAVE_LLVM >= 0x0800) {
|
||||
const char *argv[2] = { "mesa", "-simplifycfg-sink-common=false" };
|
||||
LLVMParseCommandLineOptions(2, argv, NULL);
|
||||
|
||||
} else {
|
||||
const char *argv[3] = { "mesa", "-simplifycfg-sink-common=false",
|
||||
"-amdgpu-skip-threshold=1" };
|
||||
LLVMParseCommandLineOptions(3, argv, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static once_flag radv_init_llvm_target_once_flag = ONCE_FLAG_INIT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue