d3d11/tests: Add a couple of extra tests for SRV/RTV conflict.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-05-24 11:05:48 -05:00 committed by Alexandre Julliard
parent ff5982fcf1
commit 1a9400bcc9
1 changed files with 9 additions and 0 deletions

View File

@ -32351,6 +32351,15 @@ static void test_deferred_context_state(void)
ID3D11DeviceContext_PSGetShaderResources(deferred, 0, 1, &ret_srv);
ok(!ret_srv, "Got unexpected SRV %p.\n", ret_srv);
ID3D11DeviceContext_PSSetShaderResources(deferred, 0, 1, &srv);
ID3D11DeviceContext_PSGetShaderResources(deferred, 0, 1, &ret_srv);
ok(!ret_srv, "Got unexpected SRV %p.\n", ret_srv);
ID3D11DeviceContext_PSSetShaderResources(immediate, 0, 1, &srv);
ID3D11DeviceContext_PSGetShaderResources(immediate, 0, 1, &ret_srv);
ok(ret_srv == srv, "Got unexpected SRV %p.\n", ret_srv);
ID3D11ShaderResourceView_Release(ret_srv);
ID3D11ShaderResourceView_Release(srv);
ID3D11RenderTargetView_Release(rtv);
ID3D11Texture2D_Release(texture);