=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vkd3d: Enable rasterization discard if possible.
Alexandre Julliard
julliard at winehq.org
Thu Nov 15 16:42:52 CST 2018
Module: vkd3d
Branch: master
Commit: fa0f6f584a30536c6b476387fe985a401a7071dc
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=fa0f6f584a30536c6b476387fe985a401a7071dc
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu Nov 15 16:32:37 2018 +0100
vkd3d: Enable rasterization discard if possible.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
libs/vkd3d/state.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libs/vkd3d/state.c b/libs/vkd3d/state.c
index 3f3de4d..35b9000 100644
--- a/libs/vkd3d/state.c
+++ b/libs/vkd3d/state.c
@@ -2235,6 +2235,8 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
}
rs_desc_from_d3d12(&graphics->rs_desc, &desc->RasterizerState);
+ if (!graphics->attachment_count && !(desc->PS.pShaderBytecode && desc->PS.BytecodeLength))
+ graphics->rs_desc.rasterizerDiscardEnable = VK_TRUE;
graphics->ms_desc.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO;
graphics->ms_desc.pNext = NULL;
More information about the wine-cvs
mailing list