tests: Transition resources to PIXEL_SHADER_RESOURCE in test_sample_c_lz().

This commit is contained in:
Giovanni Mascellani 2024-06-01 21:38:59 +02:00 committed by Henri Verbeet
parent fe787cf77f
commit 9f056f3989
Notes: Henri Verbeet 2024-07-08 18:55:29 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/919

View File

@ -15506,6 +15506,8 @@ static void test_sample_c_lz(void)
transition_resource_state(command_list, ds.texture,
D3D12_RESOURCE_STATE_DEPTH_WRITE, D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE);
transition_resource_state(command_list, ds_offset.texture,
D3D12_RESOURCE_STATE_DEPTH_WRITE, D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE);
memset(&ps_constant, 0, sizeof(ps_constant));
for (j = 0; j < ARRAY_SIZE(shaders_2d_array); ++j)