1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00

[d3d11] Properly initialize minUav counter

And also use it when resetting UAV bindings. Fixes a small oversight
that didn't affect correctness.
This commit is contained in:
Philip Rebohle 2025-02-23 13:34:11 +01:00
parent c69dbc4490
commit fc3cf3e822

View File

@ -199,11 +199,11 @@ namespace dxvk {
UINT stencilRef = D3D11_DEFAULT_STENCIL_REFERENCE; UINT stencilRef = D3D11_DEFAULT_STENCIL_REFERENCE;
UINT maxRtv = 0u; UINT maxRtv = 0u;
UINT minUav = 0u; UINT minUav = D3D11_1_UAV_SLOT_COUNT;
UINT maxUav = 0u; UINT maxUav = 0u;
void reset() { void reset() {
for (uint32_t i = 0; i < maxUav; i++) for (uint32_t i = minUav; i < maxUav; i++)
uavs[i] = nullptr; uavs[i] = nullptr;
for (uint32_t i = 0; i < maxRtv; i++) for (uint32_t i = 0; i < maxRtv; i++)
@ -221,8 +221,9 @@ namespace dxvk {
sampleMask = D3D11_DEFAULT_SAMPLE_MASK; sampleMask = D3D11_DEFAULT_SAMPLE_MASK;
stencilRef = D3D11_DEFAULT_STENCIL_REFERENCE; stencilRef = D3D11_DEFAULT_STENCIL_REFERENCE;
maxRtv = 0; maxRtv = 0u;
maxUav = 0; minUav = D3D11_1_UAV_SLOT_COUNT;
maxUav = 0u;
} }
}; };