mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 03:50:13 +01: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>
This commit is contained in:
parent
31fdd26d01
commit
4fc2a6cbdb
1 changed files with 1 additions and 0 deletions
|
|
@ -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