Commit cc2f26aa authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard
Browse files

d3d11/tests: Test UAV clears of 3D view with nontrivial depth.


Signed-off-by: Zebediah Figura's avatarZebediah Figura <zfigura@codeweavers.com>
Signed-off-by: default avatarHenri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 35e08b90
......@@ -16529,8 +16529,7 @@ static void test_clear_image_unordered_access_view(void)
{
{D3D11_RESOURCE_DIMENSION_TEXTURE2D, D3D11_UAV_DIMENSION_TEXTURE2D, FALSE},
{D3D11_RESOURCE_DIMENSION_TEXTURE2D, D3D11_UAV_DIMENSION_TEXTURE2DARRAY, TRUE },
/* Expected behaviour with partial layer coverage is unclear. */
{D3D11_RESOURCE_DIMENSION_TEXTURE3D, D3D11_UAV_DIMENSION_TEXTURE3D, FALSE},
{D3D11_RESOURCE_DIMENSION_TEXTURE3D, D3D11_UAV_DIMENSION_TEXTURE3D, TRUE },
};
 
if (!init_test_context(&test_context, NULL))
......@@ -16549,13 +16548,15 @@ static void test_clear_image_unordered_access_view(void)
{
for (i = 0; i < ARRAY_SIZE(tests); ++i)
{
winetest_push_context("Dim %u, Test %u", d, i);
if (tests[i].image_layers > 1 && !uav_dimensions[d].is_layered)
{
winetest_pop_context();
continue;
}
/* Expected behaviour with partial layer coverage is unclear. */
if (uav_dimensions[d].view_dim == D3D11_UAV_DIMENSION_TEXTURE3D
&& tests[i].image_layers != tests[i].layer_count)
continue;
winetest_push_context("Dim %u, Test %u", d, i);
 
resource_desc.dimension = uav_dimensions[d].resource_dim;
resource_desc.depth_or_array_size = tests[i].image_layers;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment