mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests: Check that PS was invoked at least once for each pixel.
This commit is contained in:
parent
0741d1002a
commit
3535112598
@ -11387,8 +11387,8 @@ static void test_query_pipeline_statistics(void)
|
|||||||
ID3D12QueryHeap *query_heap;
|
ID3D12QueryHeap *query_heap;
|
||||||
ID3D12Resource *resource;
|
ID3D12Resource *resource;
|
||||||
struct resource_readback rb;
|
struct resource_readback rb;
|
||||||
|
unsigned int pixel_count, i;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
int i;
|
|
||||||
|
|
||||||
if (!init_test_context(&context, NULL))
|
if (!init_test_context(&context, NULL))
|
||||||
return;
|
return;
|
||||||
@ -11458,8 +11458,9 @@ static void test_query_pipeline_statistics(void)
|
|||||||
pipeline_statistics->CPrimitives);
|
pipeline_statistics->CPrimitives);
|
||||||
|
|
||||||
/* Exact number of pixel shader invocations depends on the graphics card. */
|
/* Exact number of pixel shader invocations depends on the graphics card. */
|
||||||
ok(pipeline_statistics->PSInvocations > 0, "PSInvocations: Got %"PRIu64", expected > 0.\n",
|
pixel_count = context.render_target_desc.Width * context.render_target_desc.Height;
|
||||||
pipeline_statistics->PSInvocations);
|
ok(pipeline_statistics->PSInvocations >= pixel_count, "PSInvocations: Got %"PRIu64", expected >= %u.\n",
|
||||||
|
pipeline_statistics->PSInvocations, pixel_count);
|
||||||
|
|
||||||
/* We used no tessellation or compute shaders at all. */
|
/* We used no tessellation or compute shaders at all. */
|
||||||
ok(pipeline_statistics->HSInvocations == 0, "HSInvocations: Got %"PRIu64", expected 0.\n",
|
ok(pipeline_statistics->HSInvocations == 0, "HSInvocations: Got %"PRIu64", expected 0.\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user