Fixed some shaders not appearing with the d3d12 driver - this reintroduces a validation error though but it seems to work as in not crash and is the old RA behaviour. Guess we need a different way of fixing the validation issue. (#14729)

This commit is contained in:
MajorPainTheCactus 2022-12-13 22:19:28 +00:00 committed by GitHub
parent de26e07062
commit 5d306acd90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2616,8 +2616,7 @@ static bool d3d12_gfx_frame(
D3D12RSSetViewports(d3d12->queue.cmd, 1, &d3d12->frame.viewport);
D3D12RSSetScissorRects(d3d12->queue.cmd, 1, &d3d12->frame.scissorRect);
if (!d3d12->shader_preset || d3d12->pass[0].rt.handle)
D3D12DrawInstanced(d3d12->queue.cmd, 4, 1, 0, 0);
D3D12DrawInstanced(d3d12->queue.cmd, 4, 1, 0, 0);
D3D12SetPipelineState(d3d12->queue.cmd,
d3d12->pipes[VIDEO_SHADER_STOCK_BLEND]);