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:
@@ -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 ||
|
||||
|
Reference in New Issue
Block a user