mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
[d3d11] Expose Feature Level 11_1 if explicitly requested
Not enabled by default since some 11_1 functionality is not yet implemented.
This commit is contained in:
parent
127fad89be
commit
d6d6ed4efd
@ -1601,7 +1601,6 @@ namespace dxvk {
|
||||
enabled.logicOp = supported.logicOp;
|
||||
enabled.shaderImageGatherExtended = VK_TRUE;
|
||||
enabled.textureCompressionBC = VK_TRUE;
|
||||
enabled.vertexPipelineStoresAndAtomics = VK_TRUE;
|
||||
}
|
||||
|
||||
if (featureLevel >= D3D_FEATURE_LEVEL_10_1) {
|
||||
@ -1617,6 +1616,11 @@ namespace dxvk {
|
||||
enabled.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
||||
}
|
||||
|
||||
if (featureLevel >= D3D_FEATURE_LEVEL_11_1) {
|
||||
enabled.logicOp = VK_TRUE;
|
||||
enabled.vertexPipelineStoresAndAtomics = VK_TRUE;
|
||||
}
|
||||
|
||||
return enabled;
|
||||
}
|
||||
|
||||
@ -1872,7 +1876,8 @@ namespace dxvk {
|
||||
|
||||
|
||||
D3D_FEATURE_LEVEL D3D11Device::GetMaxFeatureLevel() {
|
||||
static const std::array<std::pair<std::string, D3D_FEATURE_LEVEL>, 6> s_featureLevels = {{
|
||||
static const std::array<std::pair<std::string, D3D_FEATURE_LEVEL>, 7> s_featureLevels = {{
|
||||
{ "11_1", D3D_FEATURE_LEVEL_11_1 },
|
||||
{ "11_0", D3D_FEATURE_LEVEL_11_0 },
|
||||
{ "10_1", D3D_FEATURE_LEVEL_10_1 },
|
||||
{ "10_0", D3D_FEATURE_LEVEL_10_0 },
|
||||
@ -1891,7 +1896,6 @@ namespace dxvk {
|
||||
return entry != s_featureLevels.end()
|
||||
? entry->second
|
||||
: D3D_FEATURE_LEVEL_11_0;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user