1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Set up unused extra state for the backend correctly

This commit is contained in:
Philip Rebohle 2019-05-01 00:32:03 +02:00
parent fc52c1720d
commit 9fc09c843d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 15 additions and 1 deletions

View File

@ -3124,7 +3124,18 @@ namespace dxvk {
cScissors.data());
});
}
void D3D11DeviceContext::ApplyUnusedState() {
// Initialize state that isn't exposed in D3D11
EmitCs([] (DxvkContext* ctx) {
DxvkExtraState xs;
xs.alphaCompareOp = VK_COMPARE_OP_ALWAYS;
ctx->setExtraState(xs);
});
}
void D3D11DeviceContext::BindShader(
DxbcProgramType ShaderStage,
@ -3565,6 +3576,7 @@ namespace dxvk {
ApplyStencilRef();
ApplyRasterizerState();
ApplyViewportState();
ApplyUnusedState();
BindDrawBuffer(
m_state.id.argBuffer.ptr());

View File

@ -680,6 +680,8 @@ namespace dxvk {
void ApplyRasterizerState();
void ApplyViewportState();
void ApplyUnusedState();
void BindShader(
DxbcProgramType ShaderStage,