aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/frontends
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2019-06-04 00:37:28 +0200
committerMarge Bot <[email protected]>2020-05-15 15:43:57 +0000
commit5d904d27491aab489d54746bc6650b27c5927c39 (patch)
tree0c177661b205471879040c2722d68dcd86d87f1a /src/gallium/frontends
parent54a7a6908597e016912609db16532cc8eba16864 (diff)
st/nine: Improve return error code in CheckDeviceFormat
This seems suspicious, but is better than what we currently do. Signed-off-by: Axel Davy <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>
Diffstat (limited to 'src/gallium/frontends')
-rw-r--r--src/gallium/frontends/nine/adapter9.c4
1 files changed, 3 insertions, 1 deletions
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))