[PATCH] d3d11/tests: Add test for ClearRenderTargetView.

Józef Kucia joseph.kucia at gmail.com
Tue May 15 16:50:21 CDT 2018


On Tue, May 15, 2018 at 7:09 PM, Pablo Martin <pmart-wine at riseup.net> wrote:
> I stumbled upon this testing problem, where the tested colour differs between wine and windows.
>
> Tested on ubuntu 17.10 and all windows versions on testbot.
>
> Signed-off-by: Pablo Martin <pmart-wine at riseup.net>
> ---
>  dlls/d3d11/tests/d3d11.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
> index 63f964a461..307a966ac3 100644
> --- a/dlls/d3d11/tests/d3d11.c
> +++ b/dlls/d3d11/tests/d3d11.c
> @@ -11581,6 +11581,7 @@ static void test_copy_subresource_region(void)
>      ID3D11DeviceContext_PSSetShader(context, ps, NULL, 0);
>
>      ID3D11DeviceContext_ClearRenderTargetView(context, test_context.backbuffer_rtv, red);
> +    todo_wine check_texture_color(test_context.backbuffer, 0x800000ff, 0);

It doesn't seem good idea to require the exact result. 0x7f is close
enough to 0x80.

>
>      set_box(&box, 0, 0, 0, 2, 2, 1);
>      ID3D11DeviceContext_CopySubresourceRegion(context, (ID3D11Resource *)dst_texture, 0,
> --
> 2.14.1
>
>
>



More information about the wine-devel mailing list