Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785001 - media-libs/mesa-21.1.0_rc2 build fails with 'struct zink_context' has no member named 'flush_res'
Summary: media-libs/mesa-21.1.0_rc2 build fails with 'struct zink_context' has no memb...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-04-22 08:27 UTC by Maxim Britov
Modified: 2021-04-29 08:35 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Upstream raw commit (83954925873626b180e35ae34ab250492fbaf21e.diff,8.62 KB, patch)
2021-04-22 08:28 UTC, Maxim Britov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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