diff --git a/src/dxvk/dxvk_shader.cpp b/src/dxvk/dxvk_shader.cpp index b65ca2d3..a8389557 100644 --- a/src/dxvk/dxvk_shader.cpp +++ b/src/dxvk/dxvk_shader.cpp @@ -46,11 +46,6 @@ namespace dxvk { const DxvkInterfaceSlots& iface, const SpirvCodeBuffer& code) : m_stage(stage), m_code(code), m_interface(iface) { - // Compute shader hash once - m_hash = Sha1Hash::compute( - reinterpret_cast(code.data()), - code.size()); - // Write back resource slot infos for (uint32_t i = 0; i < slotCount; i++) m_slots.push_back(slotInfos[i]); diff --git a/src/dxvk/dxvk_shader.h b/src/dxvk/dxvk_shader.h index 9c39ac1d..fc6fb4eb 100644 --- a/src/dxvk/dxvk_shader.h +++ b/src/dxvk/dxvk_shader.h @@ -167,16 +167,6 @@ namespace dxvk { */ void read(std::istream& inputStream); - /** - * \brief Shader hash - * - * The SHA-1 hash of the generated SPIR-V shader. - * \returns SHA-1 hash of this shader - */ - Sha1Hash hash() const { - return m_hash; - } - /** * \brief Sets the shader's debug name * @@ -200,7 +190,6 @@ namespace dxvk { VkShaderStageFlagBits m_stage; SpirvCodeBuffer m_code; - Sha1Hash m_hash; std::vector m_slots; std::vector m_idOffsets;