void-packages/srcpkgs/xf86-video-mach64/patches/0003-Fix-debugging-traces.patch
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

28 lines
1,014 B
Diff

From 22200891efea69eb17772da8ae5e074860ba1ad4 Mon Sep 17 00:00:00 2001
From: George Matsumura <gmmatsumura01@bvsd.org>
Date: Sun, 6 Oct 2019 17:43:24 +0000
Subject: [PATCH xf86-video-mach64 3/4] Fix debugging traces
Without this change, the compiler emits an error about pPict being undefined when fallback messages are turned on.
---
src/atimach64render.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git src/atimach64render.c src/atimach64render.c
index 8d259fa..e4ddea8 100644
--- a/src/atimach64render.c
+++ b/src/atimach64render.c
@@ -701,8 +701,8 @@ Mach64PrepareComposite
break;
}
if (i == MACH64_NR_TEX_FORMATS)
- MACH64_FALLBACK(("Unsupported picture format 0x%x\n",
- (int)pPict->format));
+ MACH64_FALLBACK(("Unsupported dst format 0x%x\n",
+ (int)pDstPicture->format));
dstFormat = Mach64TexFormats[i].dstFormat;
m3d->dp_pix_width = SetBits(dstFormat, DP_DST_PIX_WIDTH) |
--
2.25.0