Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 785001

Summary: media-libs/mesa-21.1.0_rc2 build fails with 'struct zink_context' has no member named 'flush_res'
Product: Gentoo Linux Reporter: Maxim Britov <maxbritov>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED OBSOLETE    
Severity: normal CC: atoth, contyk, herrtimson, lssndrbarbieri, nholland, sam, spyros_ladon, tanekliang, zhuyifei1999
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4684
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Upstream raw commit

Description Maxim Britov 2021-04-22 08:27:40 UTC
Upstream commit https://gitlab.freedesktop.org/mesa/mesa/-/commit/83954925873626b180e35ae34ab250492fbaf21e
fixes it for me.

../mesa-21.1.0-rc2/src/gallium/drivers/zink/zink_resource.c: In function 'zink_transfer_map':
../mesa-21.1.0-rc2/src/gallium/drivers/zink/zink_resource.c:1009:29: error: 'struct zink_context' has no member named 'flush_res'
 1009 |                scanout = ctx->flush_res;
      |                             ^~
../mesa-21.1.0-rc2/src/gallium/drivers/zink/zink_resource.c:1010:19: error: 'struct zink_context' has no member named 'flush_res'
 1010 |                ctx->flush_res = res;
      |                   ^~
../mesa-21.1.0-rc2/src/gallium/drivers/zink/zink_resource.c:1016:19: error: 'struct zink_context' has no member named 'flush_res'
 1016 |                ctx->flush_res = scanout;
      |                   ^~
../mesa-21.1.0-rc2/src/gallium/drivers/zink/zink_resource.c:1034:29: error: 'struct zink_context' has no member named 'flush_res'
 1034 |                scanout = ctx->flush_res;
      |                             ^~
../mesa-21.1.0-rc2/src/gallium/drivers/zink/zink_resource.c:1035:19: error: 'struct zink_context' has no member named 'flush_res'
 1035 |                ctx->flush_res = res;
      |                   ^~
../mesa-21.1.0-rc2/src/gallium/drivers/zink/zink_resource.c:1043:19: error: 'struct zink_context' has no member named 'flush_res'
 1043 |                ctx->flush_res = scanout;
      |                   ^~


Reproducible: Always
Comment 1 Maxim Britov 2021-04-22 08:28:49 UTC
Created attachment 701652 [details, diff]
Upstream raw commit
Comment 2 Maxim Britov 2021-04-23 10:21:59 UTC
# wget https://gitlab.freedesktop.org/mesa/mesa/-/commit/83954925873626b180e35ae34ab250492fbaf21e.diff --directory-prefix=/etc/portage/patches/media-libs/mesa-21.1.0_rc2
# emerge media-libs/mesa
Comment 3 Attila Tóth 2021-04-28 20:18:13 UTC
(In reply to Maxim Britov from comment #2)
> # wget
> https://gitlab.freedesktop.org/mesa/mesa/-/commit/
> 83954925873626b180e35ae34ab250492fbaf21e.diff
> --directory-prefix=/etc/portage/patches/media-libs/mesa-21.1.0_rc2
> # emerge media-libs/mesa

Thanks, worked for me.
Comment 4 tt_1 2021-04-28 20:52:01 UTC
please test again with 21.1.0_rc3, the patch should have been merged into it.
Comment 5 Maxim Britov 2021-04-29 08:35:39 UTC
media-libs/mesa-21.1.0_rc3 builds fine