Module: Mesa
Branch: main
Commit: 9c17d9df4369f0acdff66a29451344e7d454888b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c17d9df4369f0acdff66a29451344e7d454888b

Author: Charmaine Lee <[email protected]>
Date:   Wed Jul 19 09:09:53 2023 +0300

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: a1eabeff660 ("gallium: remove PIPE_CAP_CLEAR_TEXTURE")

Reviewed-by: Neha Bhende <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24264>

---

 src/gallium/drivers/svga/svga_pipe_clear.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_pipe_clear.c 
b/src/gallium/drivers/svga/svga_pipe_clear.c
index 1aa99ddd6e5..3917328650b 100644
--- a/src/gallium/drivers/svga/svga_pipe_clear.c
+++ b/src/gallium/drivers/svga/svga_pipe_clear.c
@@ -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;
 }

Reply via email to