[d3d9] Adjust the MaxActiveLights capability

This commit is contained in:
WinterSnowfall 2023-08-30 09:32:00 +03:00
parent 7e10021eac
commit e1c77fdd35
3 changed files with 4 additions and 2 deletions

View File

@ -523,7 +523,7 @@ namespace dxvk {
| D3DVTXPCAPS_TEXGEN_SPHEREMAP
/* | D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER*/;
// Max Active Lights
pCaps->MaxActiveLights = caps::MaxEnabledLights;
pCaps->MaxActiveLights = 8;
// Max User Clip Planes
pCaps->MaxUserClipPlanes = MaxClipPlanes;
// Max Vertex Blend Matrices

View File

@ -27,7 +27,7 @@ namespace dxvk::caps {
constexpr uint32_t TextureStageCount = MaxSimultaneousTextures;
constexpr uint32_t MaxEnabledLights = 8;
constexpr uint32_t MaxEnabledLights = 255;
constexpr uint32_t MaxTexturesVS = 4;
constexpr uint32_t MaxTexturesPS = 16;

View File

@ -298,6 +298,8 @@ namespace dxvk {
m_adapter->GetDeviceCaps(m_deviceType, pCaps);
// Native drivers report either 255 or UINT_MAX when doing SWVP
pCaps->MaxActiveLights = m_isSWVP ? caps::MaxEnabledLights : 10;
// When in SWVP mode, 256 matrices can be used for indexed vertex blending
pCaps->MaxVertexBlendMatrixIndex = m_isSWVP ? 255 : 8;