Mesa (staging/22.1): llvmpipe: flush resources for kms swrast path.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 26 16:40:23 UTC 2022
Module: Mesa
Branch: staging/22.1
Commit: c8d35579b25396cabc098cf5d2689e2354140858
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8d35579b25396cabc098cf5d2689e2354140858
Author: Dave Airlie <airlied at redhat.com>
Date: Thu May 26 10:54:51 2022 +1000
llvmpipe: flush resources for kms swrast path.
The kms_swrast path calls this callback via the dri2 paths,
not flushing caused artifacts when running inside a VM or on hw
in weston/gnome-shell.
Fixes: 6bbbe15a783a ("Reinstate: llvmpipe: allow vertex processing and fragment processing in parallel")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16715>
(cherry picked from commit c219ca3fb72259a614468b9ac6cfe9369073f7c8)
---
.pick_status.json | 2 +-
src/gallium/drivers/llvmpipe/lp_surface.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.pick_status.json b/.pick_status.json
index fd3cf574781..c3c83f0c6dc 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -175,7 +175,7 @@
"description": "llvmpipe: flush resources for kms swrast path.",
"nominated": true,
"nomination_type": 1,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": "6bbbe15a783a3b004d994057a96b91d5cf5d08da"
},
diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c
index 6a081f9696a..1be8e6af90b 100644
--- a/src/gallium/drivers/llvmpipe/lp_surface.c
+++ b/src/gallium/drivers/llvmpipe/lp_surface.c
@@ -176,6 +176,7 @@ static void lp_blit(struct pipe_context *pipe,
static void
lp_flush_resource(struct pipe_context *ctx, struct pipe_resource *resource)
{
+ llvmpipe_flush_resource(ctx, resource, 0, true, true, false, "resource");
}
More information about the mesa-commit
mailing list