From 4da147a02b541311e8dc231b30dd36fafea820ff Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 8 Sep 2022 10:21:32 +0200 Subject: [PATCH] mesa: remove fallback for GL_DEPTH_STENCIL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Emma Anholt Part-of: --- src/mesa/state_tracker/st_cb_texture.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 374345b7c6f..2ebe8bbbb0a 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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 !=