mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
nine: check hardware support before using vertex texture
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Axel Davy <davyaxel0@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15864>
This commit is contained in:
parent
d637eee212
commit
f1202a92cf
1 changed files with 4 additions and 0 deletions
|
|
@ -339,6 +339,10 @@ NineAdapter9_CheckDeviceFormat( struct NineAdapter9 *This,
|
|||
bind |= d3d9_get_pipe_depth_format_bindings(CheckFormat);
|
||||
}
|
||||
|
||||
if ((Usage & D3DUSAGE_QUERY_VERTEXTEXTURE) &&
|
||||
!screen->get_shader_param(screen, PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS))
|
||||
return D3DERR_NOTAVAILABLE;
|
||||
|
||||
/* API hack because setting RT[0] to NULL is forbidden */
|
||||
if (CheckFormat == D3DFMT_NULL && bind == PIPE_BIND_RENDER_TARGET &&
|
||||
(RType == D3DRTYPE_SURFACE ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue