From: Axel Davy Date: Mon, 3 Jun 2019 22:37:28 +0000 (+0200) Subject: st/nine: Improve return error code in CheckDeviceFormat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d904d27491aab489d54746bc6650b27c5927c39;p=mesa.git st/nine: Improve return error code in CheckDeviceFormat This seems suspicious, but is better than what we currently do. Signed-off-by: Axel Davy Part-of: --- diff --git a/src/gallium/frontends/nine/adapter9.c b/src/gallium/frontends/nine/adapter9.c index 200e5389949..356cbb6e6dc 100644 --- a/src/gallium/frontends/nine/adapter9.c +++ b/src/gallium/frontends/nine/adapter9.c @@ -297,7 +297,9 @@ NineAdapter9_CheckDeviceFormat( struct NineAdapter9 *This, DBG("Usage=%x RType=%u CheckFormat=%s\n", Usage, RType, d3dformat_to_string(CheckFormat)); - user_assert(display_format(AdapterFormat, FALSE), D3DERR_INVALIDCALL); + /* Wine tests, but suspicious. Needs more tests. */ + user_assert(adapter_format(AdapterFormat), D3DERR_INVALIDCALL); + user_assert(display_format(AdapterFormat, FALSE), D3DERR_NOTAVAILABLE); hr = NineAdapter9_GetScreen(This, DeviceType, &screen); if (FAILED(hr))