d3d10core/tests: Use wine_dbgstr_rect() to print RECTs.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-06-10 09:41:32 +02:00 committed by Alexandre Julliard
parent db134bbd5a
commit 7c0d79770d
1 changed files with 6 additions and 8 deletions

View File

@ -3143,8 +3143,7 @@ float4 main(float4 color : COLOR) : SV_TARGET
for (i = 0; i < D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; ++i) for (i = 0; i < D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE; ++i)
{ {
ok(!tmp_rect[i].left && !tmp_rect[i].top && !tmp_rect[i].right && !tmp_rect[i].bottom, ok(!tmp_rect[i].left && !tmp_rect[i].top && !tmp_rect[i].right && !tmp_rect[i].bottom,
"Got unexpected scissor rect {%d, %d, %d, %d} in slot %u.\n", "Got unexpected scissor rect %s in slot %u.\n", wine_dbgstr_rect(&tmp_rect[i]), i);
tmp_rect[i].left, tmp_rect[i].top, tmp_rect[i].right, tmp_rect[i].bottom, i);
} }
ID3D10Device_RSGetViewports(device, &count, NULL); ID3D10Device_RSGetViewports(device, &count, NULL);
todo_wine ok(!count, "Got unexpected viewport count %u.\n", count); todo_wine ok(!count, "Got unexpected viewport count %u.\n", count);
@ -3542,8 +3541,7 @@ float4 main(float4 color : COLOR) : SV_TARGET
&& tmp_rect[i].top == i * 2 && tmp_rect[i].top == i * 2
&& tmp_rect[i].right == i + 1 && tmp_rect[i].right == i + 1
&& tmp_rect[i].bottom == (i + 1) * 2, && tmp_rect[i].bottom == (i + 1) * 2,
"Got unexpected scissor rect {%d, %d, %d, %d} in slot %u.\n", "Got unexpected scissor rect %s in slot %u.\n", wine_dbgstr_rect(&tmp_rect[i]), i);
tmp_rect[i].left, tmp_rect[i].top, tmp_rect[i].right, tmp_rect[i].bottom, i);
} }
ID3D10Device_RSGetViewports(device, &count, NULL); ID3D10Device_RSGetViewports(device, &count, NULL);
todo_wine ok(count == D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE, todo_wine ok(count == D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE,
@ -3680,12 +3678,12 @@ float4 main(float4 color : COLOR) : SV_TARGET
{ {
if (!i) if (!i)
todo_wine ok(!tmp_rect[i].left && !tmp_rect[i].top && !tmp_rect[i].right && !tmp_rect[i].bottom, todo_wine ok(!tmp_rect[i].left && !tmp_rect[i].top && !tmp_rect[i].right && !tmp_rect[i].bottom,
"Got unexpected scissor rect {%d, %d, %d, %d} in slot %u.\n", "Got unexpected scissor rect %s in slot %u.\n",
tmp_rect[i].left, tmp_rect[i].top, tmp_rect[i].right, tmp_rect[i].bottom, i); wine_dbgstr_rect(&tmp_rect[i]), i);
else else
ok(!tmp_rect[i].left && !tmp_rect[i].top && !tmp_rect[i].right && !tmp_rect[i].bottom, ok(!tmp_rect[i].left && !tmp_rect[i].top && !tmp_rect[i].right && !tmp_rect[i].bottom,
"Got unexpected scissor rect {%d, %d, %d, %d} in slot %u.\n", "Got unexpected scissor rect %s in slot %u.\n",
tmp_rect[i].left, tmp_rect[i].top, tmp_rect[i].right, tmp_rect[i].bottom, i); wine_dbgstr_rect(&tmp_rect[i]), i);
} }
ID3D10Device_RSGetViewports(device, &count, NULL); ID3D10Device_RSGetViewports(device, &count, NULL);
todo_wine ok(!count, "Got unexpected viewport count %u.\n", count); todo_wine ok(!count, "Got unexpected viewport count %u.\n", count);