Skip to content

Commit

Permalink
vkd3d-shader: Modify the shader revision when dxilconv.dll is found.
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 Nov 29, 2024
1 parent a9a69d5 commit dda47f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/vkd3d-shader/vkd3d_shader_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,12 @@ uint64_t vkd3d_shader_get_revision(void)
* Might get nuked later ...
* It's not immediately useful for invalidating pipeline caches, since that would mostly be covered
* by vkd3d-proton Git hash. */
#ifdef VKD3D_ENABLE_DXILCONV
dxilconv_init_once();
return vkd3d_dxilconv_instance_proc ? 2 : 1;
#else
return 1;
#endif
}

struct vkd3d_shader_stage_io_entry *vkd3d_shader_stage_io_map_append(struct vkd3d_shader_stage_io_map *map,
Expand Down

0 comments on commit dda47f4

Please sign in to comment.