Skip to content

Commit

Permalink
vkd3d: Only disable raster based on SO stream if SO is used.
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Kertels <robin.kertels@gmail.com>
  • Loading branch information
K0bin authored and HansKristian-Work committed Aug 23, 2021
1 parent b2c99b0 commit 76f37c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/vkd3d/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -3417,7 +3417,7 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
rs_desc_from_d3d12(&graphics->rs_desc, &desc->rasterizer_state);
have_attachment = graphics->rt_count || graphics->dsv_format || is_dsv_format_unknown;
if ((!have_attachment && !(desc->ps.pShaderBytecode && desc->ps.BytecodeLength))
|| so_desc->RasterizedStream == D3D12_SO_NO_RASTERIZED_STREAM)
|| (so_desc->NumEntries != 0 && so_desc->RasterizedStream == D3D12_SO_NO_RASTERIZED_STREAM))
graphics->rs_desc.rasterizerDiscardEnable = VK_TRUE;

rs_stream_info_from_d3d12(&graphics->rs_stream_info, &graphics->rs_desc, so_desc, vk_info);
Expand Down

0 comments on commit 76f37c3

Please sign in to comment.