Module: Mesa Branch: master Commit: 512d281853ca84b2bd92aefb0cde2b9ed5dfceb5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=512d281853ca84b2bd92aefb0cde2b9ed5dfceb5
Author: Christian Gmeiner <[email protected]> Date: Fri Feb 26 22:05:42 2021 +0100 gallium: call util_cpu_detect() Fix undefined behavior from using util_cpu_caps. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9311> --- src/gallium/auxiliary/pipe-loader/pipe_loader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader.c b/src/gallium/auxiliary/pipe-loader/pipe_loader.c index 10638a39ed7..4b6ac054fcc 100644 --- a/src/gallium/auxiliary/pipe-loader/pipe_loader.c +++ b/src/gallium/auxiliary/pipe-loader/pipe_loader.c @@ -27,6 +27,7 @@ #include "pipe_loader_priv.h" +#include "util/u_cpu_detect.h" #include "util/u_inlines.h" #include "util/u_memory.h" #include "util/u_string.h" @@ -151,6 +152,7 @@ pipe_loader_create_screen(struct pipe_loader_device *dev) { struct pipe_screen_config config; + util_cpu_detect(); pipe_loader_load_options(dev); config.options = &dev->option_cache; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
