Skip to content

Commit

Permalink
Revert "Disable LLPC optimizations when VK_PIPELINE_CREATE_DISABLE_OP…
Browse files Browse the repository at this point in the history
…TIMIZATION_BIT is set"

This change cause one game crash, will revert it before it is fixed.

This reverts commit 46e826d.
  • Loading branch information
JaxLinAMD committed Mar 28, 2022
1 parent 0d1bcd4 commit 36c5637
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions icd/api/pipeline_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2370,8 +2370,6 @@ void PipelineCompiler::ApplyPipelineOptions(
pOptions->includeIr = true;
}

pOptions->optimizationLevel = ((flags & VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT) != 0 ? 0 : 2);

if (pDevice->IsExtensionEnabled(DeviceExtensions::EXT_SCALAR_BLOCK_LAYOUT) ||
pDevice->GetEnabledFeatures().scalarBlockLayout)
{
Expand Down
2 changes: 1 addition & 1 deletion icd/make/importdefs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ICD_GPUOPEN_CLIENT_MINOR_VERSION = 0

# This will become the value of LLPC_CLIENT_INTERFACE_MAJOR_VERSION if ICD_BUILD_LLPC=1. It describes the version of the
# interface version of LLPC that the ICD supports.
ICD_LLPC_CLIENT_MAJOR_VERSION = 53
ICD_LLPC_CLIENT_MAJOR_VERSION = 52

# When ICD_LLPC_CLIENT_MAJOR_VERSION >= 39, Set ENABLE_VKGC to 1 to use Vkgc namespace instead of Llpc namespace in ICD
ENABLE_VKGC=1

0 comments on commit 36c5637

Please sign in to comment.