mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 16:18:06 +02:00
freedreno: Require C++17.
Commit3a772be026("freedreno: Add perfetto renderpass support") uses C++17 init-statement feature. GCC ../src/gallium/drivers/freedreno/freedreno_perfetto.cc: In lambda function: ../src/gallium/drivers/freedreno/freedreno_perfetto.cc:148:11: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ 148 | if (auto state = tctx.GetIncrementalState(); state->was_cleared) { | ^~~~ Clang ../src/gallium/drivers/freedreno/freedreno_perfetto.cc:148:11: warning: 'if' initialization statements are a C++17 extension [-Wc++17-extensions] if (auto state = tctx.GetIncrementalState(); state->was_cleared) { ^ Intel C++ Compiler ../src/gallium/drivers/freedreno/freedreno_perfetto.cc(148): error: expected a ")" if (auto state = tctx.GetIncrementalState(); state->was_cleared) { ^ Fixes:3a772be026("freedreno: Add perfetto renderpass support") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5193 Suggested-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Signed-off-by: Vinson Lee <vlee@freedesktop.org> Acked-by: Rob Clark <robdclark@chromium.org> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12293> (cherry picked from commit4fc2a6cbdb)
This commit is contained in:
parent
cc3e149f80
commit
76d1828b97
2 changed files with 2 additions and 1 deletions
|
|
@ -193,7 +193,7 @@
|
|||
"description": "freedreno: Require C++17.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "3a772be026c16161d96e29c10b94ee7fbc279c68"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -273,6 +273,7 @@ libfreedreno = static_library(
|
|||
cpp_args : [freedreno_cpp_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
dependencies : libfreedreno_dependencies,
|
||||
override_options : ['cpp_std=c++17'],
|
||||
)
|
||||
|
||||
driver_freedreno = declare_dependency(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue