svga: set clear_texture to NULL for vgpu9
authorCharmaine Lee <charmainel@vmware.com>
Wed, 19 Jul 2023 06:09:53 +0000 (09:09 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Jul 2023 17:36:31 +0000 (17:36 +0000)
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: a1eabeff660 ("gallium: remove PIPE_CAP_CLEAR_TEXTURE")

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24264>

src/gallium/drivers/svga/svga_pipe_clear.c

index 1aa99dd..3917328 100644 (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;
 }