Skip to content

Commit

Permalink
vkd3d: Add workaround for missing CS barrier in Rebirth.
Browse files Browse the repository at this point in the history
Signed-off-by: Hans-Kristian Arntzen <[email protected]>
  • Loading branch information
HansKristian-Work committed Jan 30, 2025
1 parent c511a71 commit 280bdd5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libs/vkd3d/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,15 @@ static const struct vkd3d_shader_quirk_info gzw_quirks = {
NULL, 0, VKD3D_SHADER_QUIRK_FORCE_ROBUST_PHYSICAL_CBV_LOAD_FORWARDING,
};

static const struct vkd3d_shader_quirk_hash rebirth_hashes[] = {
/* ComputeBatchedMeshletOffsetsCS(). Missing barrier after a CS based clear. */
{ 0xe96ea58529226db2, VKD3D_SHADER_QUIRK_FORCE_PRE_COMPUTE_BARRIER },
};

static const struct vkd3d_shader_quirk_info rebirth_quirks = {
rebirth_hashes, ARRAY_SIZE(rebirth_hashes), 0,
};

static const struct vkd3d_shader_quirk_meta application_shader_quirks[] = {
/* F1 2020 (1080110) */
{ VKD3D_STRING_COMPARE_EXACT, "F1_2020_dx12.exe", &f1_2019_2020_quirks },
Expand Down Expand Up @@ -798,6 +807,8 @@ static const struct vkd3d_shader_quirk_meta application_shader_quirks[] = {
{ VKD3D_STRING_COMPARE_EXACT, "M1-Win64-Shipping.exe", &tfd_quirks },
/* Gray Zone Warfare (2479810) */
{ VKD3D_STRING_COMPARE_EXACT, "GZWClientSteam-Win64-Shipping.exe", &gzw_quirks },
/* FFVII Rebirth (2909400). */
{ VKD3D_STRING_COMPARE_EXACT, "ff7rebirth_.exe", &rebirth_quirks },
/* Unreal Engine 4 */
{ VKD3D_STRING_COMPARE_ENDS_WITH, "-Shipping.exe", &ue4_quirks },
/* MSVC fails to compile empty array. */
Expand Down

0 comments on commit 280bdd5

Please sign in to comment.