st/nine: Do not advertise support for D15S1 and D24X4S4
authorAxel Davy <davyaxel0@gmail.com>
Mon, 4 Feb 2019 21:32:45 +0000 (22:32 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Sat, 9 Mar 2019 12:57:49 +0000 (13:57 +0100)
The former is supported on Matrox cards but no other hw.
The latter isn't supported anywhere.

It is fine to not advertise them as supported,
and it could prevent apps to trigger weird rendering paths.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/state_trackers/nine/nine_pipe.c

index b69ddb67113859d5dd3f78b8b170fba2dfea7675..dd858aef743b7dce577a0d2e0c88c9a3c34376a4 100644 (file)
@@ -286,10 +286,10 @@ const enum pipe_format nine_d3d9_to_pipe_format_map[120] =
    [D3DFMT_A2W10V10U10]   = PIPE_FORMAT_R10SG10SB10SA2U_NORM,
    [D3DFMT_D16_LOCKABLE]  = PIPE_FORMAT_Z16_UNORM,
    [D3DFMT_D32]           = PIPE_FORMAT_Z32_UNORM,
-   [D3DFMT_D15S1]         = PIPE_FORMAT_Z24_UNORM_S8_UINT,
+   [D3DFMT_D15S1]         = PIPE_FORMAT_NONE,
    [D3DFMT_D24S8]         = PIPE_FORMAT_S8_UINT_Z24_UNORM,
    [D3DFMT_D24X8]         = PIPE_FORMAT_X8Z24_UNORM,
-   [D3DFMT_D24X4S4]       = PIPE_FORMAT_Z24_UNORM_S8_UINT,
+   [D3DFMT_D24X4S4]       = PIPE_FORMAT_NONE,
    [D3DFMT_D16]           = PIPE_FORMAT_Z16_UNORM,
    [D3DFMT_D32F_LOCKABLE] = PIPE_FORMAT_Z32_FLOAT,
    [D3DFMT_D24FS8]        = PIPE_FORMAT_Z32_FLOAT_S8X24_UINT,