mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[d3d9] Relax SM2 minor version checks on shader creation
This commit is contained in:
parent
c6dc7e0939
commit
ad0920fe1e
@ -3322,7 +3322,8 @@ namespace dxvk {
|
||||
|
||||
if (unlikely(majorVersion > shaderModelVS
|
||||
|| (majorVersion == 1 && minorVersion > 1)
|
||||
|| (majorVersion > 1 && minorVersion != 0))) {
|
||||
// Skip checking the SM2 minor version, as it has a 2_x mode apparently
|
||||
|| (majorVersion == 3 && minorVersion != 0))) {
|
||||
Logger::err(str::format("D3D9DeviceEx::CreateVertexShader: Unsupported VS version ", majorVersion, ".", minorVersion));
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
@ -3696,7 +3697,8 @@ namespace dxvk {
|
||||
|
||||
if (unlikely(majorVersion > m_d3d9Options.shaderModel
|
||||
|| (majorVersion == 1 && minorVersion > 4)
|
||||
|| (majorVersion > 1 && minorVersion != 0))) {
|
||||
// Skip checking the SM2 minor version, as it has a 2_x mode apparently
|
||||
|| (majorVersion == 3 && minorVersion != 0))) {
|
||||
Logger::err(str::format("D3D9DeviceEx::CreatePixelShader: Unsupported PS version ", majorVersion, ".", minorVersion));
|
||||
return D3DERR_INVALIDCALL;
|
||||
}
|
||||
|
@ -79,6 +79,8 @@ namespace dxvk {
|
||||
// D3D8 options
|
||||
this->drefScaling = config.getOption<int32_t> ("d3d8.scaleDref", 0);
|
||||
|
||||
// Clamp the shader model value between 0 and 3
|
||||
this->shaderModel = dxvk::clamp(this->shaderModel, 0u, 3u);
|
||||
// Clamp LOD bias so that people don't abuse this in unintended ways
|
||||
this->samplerLodBias = dxvk::fclamp(this->samplerLodBias, -2.0f, 1.0f);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user