svga: set clear_texture to NULL for vgpu9

With PIPE_CAP_CLEAR_TEXTURE removed, we need to set clear_texture to NULL
on svga vgpu9 device so it can use the fallback path.

Fixes: a1eabeff66 ("gallium: remove PIPE_CAP_CLEAR_TEXTURE")

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24264>
This commit is contained in:
Charmaine Lee
2023-07-19 09:09:53 +03:00
committed by Marge Bot
parent fd9a0ecc86
commit 9c17d9df43
+1 -1
View File
@@ -549,6 +549,6 @@ svga_clear_render_target(struct pipe_context *pipe,
void svga_init_clear_functions(struct svga_context *svga)
{
svga->pipe.clear_render_target = svga_clear_render_target;
svga->pipe.clear_texture = svga_clear_texture;
svga->pipe.clear_texture = svga_have_vgpu10(svga) ? svga_clear_texture : NULL;
svga->pipe.clear = svga_clear;
}