diff --git a/Mesa.changes b/Mesa.changes index f12981b..9c1d602 100644 --- a/Mesa.changes +++ b/Mesa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 1 07:58:57 UTC 2022 - Fabian Vogt + +- Add patch to fix glitches with KMS (boo#1199885): + * U_llvmpipe-flush-resources-for-kms-swrast-path.patch + ------------------------------------------------------------------- Wed May 25 12:27:30 UTC 2022 - Stefan Dirsch diff --git a/Mesa.spec b/Mesa.spec index 1183fd4..d07ada3 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -123,6 +123,7 @@ Patch2: n_add-Mesa-headers-again.patch Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch58: u_dep_xcb.patch Patch100: U_fix-mpeg1_2-decode-mesa-20.2.patch +Patch101: U_llvmpipe-flush-resources-for-kms-swrast-path.patch Patch200: u_fix-build-on-ppc64le.patch Patch300: n_buildfix-21.3.0.patch Patch400: n_no-sse2-on-ix86-except-for-intel-drivers.patch @@ -741,6 +742,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} %endif %patch58 -p1 %patch100 -p1 +%patch101 -p1 %patch200 -p1 %patch300 -p1 %ifarch %{ix86} diff --git a/U_llvmpipe-flush-resources-for-kms-swrast-path.patch b/U_llvmpipe-flush-resources-for-kms-swrast-path.patch new file mode 100644 index 0000000..036a68b --- /dev/null +++ b/U_llvmpipe-flush-resources-for-kms-swrast-path.patch @@ -0,0 +1,31 @@ +From c219ca3fb72259a614468b9ac6cfe9369073f7c8 Mon Sep 17 00:00:00 2001 +From: Dave Airlie +Date: Thu, 26 May 2022 10:54:51 +1000 +Subject: [PATCH] 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 +Part-of: +--- + src/gallium/drivers/llvmpipe/lp_surface.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c +index cc97565893dc..78a1b06b81d2 100644 +--- a/src/gallium/drivers/llvmpipe/lp_surface.c ++++ b/src/gallium/drivers/llvmpipe/lp_surface.c +@@ -174,6 +174,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"); + } + + +-- +GitLab +