mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-13 16:08:50 +01:00
[dxvk] Fix spec constant selector test for compute shaders
This isn't supported on compute.
This commit is contained in:
parent
7789fd53ff
commit
c392308e6f
@ -213,9 +213,13 @@ namespace dxvk {
|
|||||||
&& !m_flags.test(DxvkShaderFlag::ExportsPosition))
|
&& !m_flags.test(DxvkShaderFlag::ExportsPosition))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Ignore shaders that have user-defined spec constants
|
// Spec constant selectors are only supported in graphics
|
||||||
// and no selector to read their contents from elsewhere
|
if (m_specConstantMask & (1u << MaxNumSpecConstants))
|
||||||
return !m_specConstantMask || (m_specConstantMask & (1u << MaxNumSpecConstants));
|
return m_info.stage != VK_SHADER_STAGE_COMPUTE_BIT;
|
||||||
|
|
||||||
|
// Always late-compile shaders with spec constants
|
||||||
|
// that don't use the spec constant selector
|
||||||
|
return !m_specConstantMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user