mesa: remove fallback for GL_DEPTH_STENCIL

st_TexSubImage has this "default to fallback for depth-stencil" since
2013. I think it's time to remove this limitation - hopefully all
drivers will be happy with the change to avoid adding yet another CAP.

This helps CS:GO startup a lot, because the fallback path is very very
slow.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18484>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2022-09-08 10:21:32 +02:00 committed by Marge Bot
parent 2baa40b041
commit 4da147a02b

View file

@ -1987,12 +1987,6 @@ st_TexSubImage(struct gl_context *ctx, GLuint dims,
goto fallback;
}
/* XXX Fallback for depth-stencil formats due to an incomplete stencil
* blit implementation in some drivers. */
if (format == GL_DEPTH_STENCIL) {
goto fallback;
}
/* If the base internal format and the texture format don't match,
* we can't use blit-based TexSubImage. */
if (texImage->_BaseFormat !=