Skip to content

Commit

Permalink
Update xgl from commit aa6b5d35
Browse files Browse the repository at this point in the history
Update Khronos Vulkan Headers to 1.3.285
[Proton][DX12] Fix Halo Infinite crash after the loading screen
Add enableMergedEncode settings for RT
Add new tuning profiles for Enshrouded.
Add option to disable ReZ for depth-only pipelines
Add RP image transitions
Clean up chrono
Cleanup Linux compiler warnings
Fix bvh_batch_layer warnings
Fix CTS failure in dEQP-VK.binding_model.inline_uniform_blocks.copy_*
Fix minor BVH batching issues
Fix mutable descriptor memory issue
Fix some bugs in recent swapchain refactor
Fix steam screenshot washed out colors with X4 Foundations
Implement BatchBvhBuilds
Implement VK_NV_device_generated_commands
Increment RGP Instrumentation API version to 4
Remove a duplicated gpurt setting
Replace IFH raytracing with RT Toss Points
Set AppendExeNameToPipelineDump to TRUE by default
Set GpurtOptions to compiler
Support vertex offset mode
Update PAL Version in XGL 878
Use maxPrimCount during indirect TLAS build
VK_NV_Device_Generated_Commands: optimize preprocess buffer
  • Loading branch information
qiaojbao committed Jun 4, 2024
1 parent a9625be commit 3abea9d
Show file tree
Hide file tree
Showing 64 changed files with 2,412 additions and 478 deletions.
6 changes: 6 additions & 0 deletions cmake/XglCompileDefinitions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ macro(xgl_set_compile_definitions)
endif()
#endif

#if VKI_RAY_TRACING
#endif

if (XGL_ENABLE_GCOV)
target_compile_definitions(xgl PRIVATE ICD_ENABLE_GCOV)
endif()
Expand All @@ -132,6 +135,9 @@ macro(xgl_set_compile_definitions)
#if VKI_RAY_TRACING
#endif

#if VKI_RAY_TRACING
#endif

#if VKI_RAY_TRACING
#endif

Expand Down
2 changes: 1 addition & 1 deletion cmake/XglVersions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ include_guard()
# This will become the value of PAL_CLIENT_INTERFACE_MAJOR_VERSION. It describes the version of the PAL interface
# that the ICD supports. PAL uses this value to enable backwards-compatibility for older interface versions.
# It must be updated on each PAL promotion after handling all of the interface changes described in palLib.h.
set(ICD_PAL_CLIENT_MAJOR_VERSION "867")
set(ICD_PAL_CLIENT_MAJOR_VERSION "878")

# This will become the value of GPUOPEN_CLIENT_INTERFACE_MAJOR_VERSION if ICD_GPUOPEN_DEVMODE_BUILD=1.
# It describes the interface version of the gpuopen shared module (part of PAL) that the ICD supports.
Expand Down
1 change: 1 addition & 0 deletions icd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ if (VKI_RAY_TRACING)
api/raytrace/vk_ray_tracing_pipeline.cpp
api/raytrace/ray_tracing_device.cpp
api/vk_deferred_operation.cpp
api/appopt/bvh_batch_layer.cpp
)
endif()
#endif
Expand Down
4 changes: 2 additions & 2 deletions icd/Loader/LunarG/Lnx/amd-icd.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"file_format_version": "1.0.0",
"ICD": {
"library_path": "@AMDVLK_INSTALL_PATH@/amdvlk@[email protected]",
"api_version": "1.3.280"
"api_version": "1.3.285"
},
"layer": {
"name": "VK_LAYER_AMD_switchable_graphics_@ISABITS@",
"type": "GLOBAL",
"library_path": "@AMDVLK_INSTALL_PATH@/amdvlk@[email protected]",
"api_version": "1.3.280",
"api_version": "1.3.285",
"implementation_version": "1",
"description": "AMD switchable graphics layer",
"functions": {
Expand Down
121 changes: 112 additions & 9 deletions icd/api/app_profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ struct AppProfilePattern
AppProfilePatternEntry entries[16];
};

// define PatternEnd

constexpr AppProfilePatternEntry PatternEnd = {};

// Section START AppProfilePatternEntry for all Games

constexpr AppProfilePatternEntry AppNameDoom =
{
PatternAppNameLower,
Expand Down Expand Up @@ -600,6 +606,24 @@ constexpr AppProfilePatternEntry AppNameX4Foundations
"x4"
};

constexpr AppProfilePatternEntry AppNameHaloInfiniteLauncher
{
PatternAppNameLower,
"haloinfinite.exe"
};

constexpr AppProfilePatternEntry AppNameTf2Win64
{
PatternAppNameLower,
"tf_win64.exe"
};

constexpr AppProfilePatternEntry AppNameTf2Linux64
{
PatternAppNameLower,
"tf_linux64"
};

constexpr AppProfilePatternEntry AppNameX4Engine
{
PatternEngineNameLower,
Expand Down Expand Up @@ -732,9 +756,36 @@ constexpr AppProfilePatternEntry AppEngineQuanticDream
"quantic dream engine"
};

constexpr AppProfilePatternEntry PatternEnd = {};
constexpr AppProfilePatternEntry AppNameEnshrouded =
{
PatternAppNameLower,
"enshrouded"
};

constexpr AppProfilePatternEntry AppEngineHolistic =
{
PatternEngineNameLower,
"holistic"
};

constexpr AppProfilePatternEntry AppNameWindowKill =
{
PatternAppNameLower,
"windowkill"
};

constexpr AppProfilePatternEntry AppEngineGodot =
{
PatternEngineNameLower,
"godot engine"
};

// Section END of AppProfilePatternEntry for all games

// This is a table of patterns. The first matching pattern in this table will be returned.
// Note: If an app gets detected by both app name and engine name,
// whatever comes first in this array will be the chosen app profile in ScanApplicationProfile().
// This should get fixed so not as to get bitten by the order here!
AppProfilePattern AppPatternTable[] =
{
{
Expand Down Expand Up @@ -800,14 +851,6 @@ AppProfilePattern AppPatternTable[] =
}
},

{
AppProfile::IdTechEngine,
{
AppEngineIdTech,
PatternEnd
}
},

{
AppProfile::Dota2,
{
Expand Down Expand Up @@ -1375,6 +1418,32 @@ AppProfilePattern AppPatternTable[] =
}
},

{
AppProfile::DxvkHaloInfiniteLauncher,
{
AppNameHaloInfiniteLauncher,
AppEngineDXVK,
PatternEnd
}
},

{
AppProfile::DxvkTf2,
{
AppNameTf2Win64,
AppEngineDXVK,
PatternEnd
}
},

{
AppProfile::DxvkTf2,
{
AppNameTf2Linux64,
AppEngineDXVK,
PatternEnd
}
},
{
AppProfile::MetalGearSolid5,
{
Expand Down Expand Up @@ -1466,6 +1535,23 @@ AppProfilePattern AppPatternTable[] =
}
},

{
AppProfile::Enshrouded,
{
AppNameEnshrouded,
AppEngineHolistic,
PatternEnd
}
},

{
AppProfile::HolisticEngine,
{
AppEngineHolistic,
PatternEnd
}
},

{
AppProfile::Zink,
{
Expand Down Expand Up @@ -1496,6 +1582,23 @@ AppProfilePattern AppPatternTable[] =
AppEngineDXVK,
PatternEnd
}
},

{
AppProfile::IdTechEngine,
{
AppEngineIdTech,
PatternEnd
}
},

{
AppProfile::WindowKill,
{
AppNameWindowKill,
AppEngineGodot,
PatternEnd
}
}
};

Expand Down
10 changes: 10 additions & 0 deletions icd/api/app_shader_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1154,12 +1154,22 @@ void ShaderOptimizer::BuildAppProfile()
if ((m_settings.pipelineProfileIgnoresAppProfile == false) && (pMemory != nullptr))
{
memset(pMemory, 0, newSize);
BuildAppProfileGeneric();
{
BuildAppProfileLlpc();
}
}
}

// =====================================================================================================================
void ShaderOptimizer::BuildAppProfileGeneric()
{
const AppProfile appProfile = m_pDevice->GetAppProfile();
const Pal::GpuType gpuType = m_pDevice->VkPhysicalDevice(DefaultDeviceIndex)->PalProperties().gpuType;

uint32 i = 0;
}

// =====================================================================================================================
void ShaderOptimizer::BuildAppProfileLlpc()
{
Expand Down
Loading

0 comments on commit 3abea9d

Please sign in to comment.