Timur Kristóf
c58c9e0359
util/enum_operators: Don't define anything for OpenCL
...
This file is going to be included in some headers that are shared
between normal C++ and OpenCL. And sadly OpenCL can't handle this.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33439 >
2025-02-12 22:33:06 +01:00
Tony Wasserka
a50d5b13be
util: tune signatures of generated enum operators
...
This allows use of these operators in a constexpr context and silences
a clang -Wunused-function warning.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10784 >
2021-05-14 11:00:52 +00:00
Tony Wasserka
c0f4bb9a22
util: add support for defining bitwise operators on strongly typed enums
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10784 >
2021-05-14 11:00:52 +00:00
Karol Herbst
76a1fb3b42
util: add helpers to define bitwise operators on enums for C++
...
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6520 >
2020-09-01 17:45:08 +00:00