mirror of https://github.com/doitsujin/dxvk
[d3d9] Adjust the MaxActiveLights capability
This commit is contained in:
parent
7e10021eac
commit
e1c77fdd35
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue