1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-04 10:29:15 +01:00

[d3d9] Adjust SM2 VS/PS caps

This commit is contained in:
WinterSnowfall 2025-01-26 21:47:24 +02:00 committed by Philip Rebohle
parent ad0920fe1e
commit 5b21286377

View File

@ -635,22 +635,23 @@ namespace dxvk {
/* | D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD */ /* | D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD */
/* | D3DPTFILTERCAPS_MAGFGAUSSIANQUAD */; /* | D3DPTFILTERCAPS_MAGFGAUSSIANQUAD */;
// Not too bothered about doing these longhand pCaps->VS20Caps.Caps = options.shaderModel >= 2 ? D3DVS20CAPS_PREDICATION : 0;
// We should match whatever my AMD hardware reports here pCaps->VS20Caps.DynamicFlowControlDepth = options.shaderModel >= 2 ? D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH : 0;
// methinks for the best chance of stuff working. pCaps->VS20Caps.NumTemps = options.shaderModel >= 2 ? D3DVS20_MAX_NUMTEMPS : 0;
pCaps->VS20Caps.Caps = 1; pCaps->VS20Caps.StaticFlowControlDepth = options.shaderModel >= 2 ? D3DVS20_MAX_STATICFLOWCONTROLDEPTH : 0;
pCaps->VS20Caps.DynamicFlowControlDepth = 24;
pCaps->VS20Caps.NumTemps = 32;
pCaps->VS20Caps.StaticFlowControlDepth = 4;
pCaps->PS20Caps.Caps = 31; pCaps->PS20Caps.Caps = options.shaderModel >= 2 ? D3DPS20CAPS_ARBITRARYSWIZZLE
pCaps->PS20Caps.DynamicFlowControlDepth = 24; | D3DPS20CAPS_GRADIENTINSTRUCTIONS
pCaps->PS20Caps.NumTemps = 32; | D3DPS20CAPS_PREDICATION
pCaps->PS20Caps.StaticFlowControlDepth = 4; | D3DPS20CAPS_NODEPENDENTREADLIMIT
| D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT : 0;
pCaps->PS20Caps.DynamicFlowControlDepth = options.shaderModel >= 2 ? D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH : 0;
pCaps->PS20Caps.NumTemps = options.shaderModel >= 2 ? D3DPS20_MAX_NUMTEMPS : 0;
pCaps->PS20Caps.StaticFlowControlDepth = options.shaderModel >= 2 ? D3DPS20_MAX_STATICFLOWCONTROLDEPTH : 0;
pCaps->PS20Caps.NumInstructionSlots = options.shaderModel >= 2 ? D3DPS20_MAX_NUMINSTRUCTIONSLOTS : 0;
pCaps->PS20Caps.NumInstructionSlots = options.shaderModel >= 2 ? 512 : 256; pCaps->VertexTextureFilterCaps = pCaps->TextureFilterCaps;
pCaps->VertexTextureFilterCaps = 50332416;
pCaps->MaxVShaderInstructionsExecuted = options.shaderModel >= 2 ? 4294967295 : 0; pCaps->MaxVShaderInstructionsExecuted = options.shaderModel >= 2 ? 4294967295 : 0;
pCaps->MaxPShaderInstructionsExecuted = options.shaderModel >= 2 ? 4294967295 : 0; pCaps->MaxPShaderInstructionsExecuted = options.shaderModel >= 2 ? 4294967295 : 0;