nine: add fallback for D3DFMT_D16 in d3d9_to_pipe_format_checked
Helps with avoing crash in winetests on crocus. Cc: mesa-stable Reviewed-by: Axel Davy <davyaxel0@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20121>
This commit is contained in:
parent
8f3c3d2fc0
commit
421d3e3c8e
1 changed files with 8 additions and 0 deletions
|
|
@ -346,6 +346,14 @@ d3d9_to_pipe_format_checked(struct pipe_screen *screen,
|
|||
* is precised in the name), so it is ok to match to another similar
|
||||
* format. In all cases, if the app reads the texture with a shader,
|
||||
* it gets depth on r and doesn't get stencil.*/
|
||||
case D3DFMT_D16:
|
||||
/* D16 support is a requirement, but as it cannot be locked,
|
||||
* it is ok to revert to D24 */
|
||||
if (format_check_internal(PIPE_FORMAT_Z24X8_UNORM))
|
||||
return PIPE_FORMAT_Z24X8_UNORM;
|
||||
if (format_check_internal(PIPE_FORMAT_X8Z24_UNORM))
|
||||
return PIPE_FORMAT_X8Z24_UNORM;
|
||||
break;
|
||||
case D3DFMT_INTZ:
|
||||
case D3DFMT_D24S8:
|
||||
if (format_check_internal(PIPE_FORMAT_Z24_UNORM_S8_UINT))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue