mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 08:20:12 +01:00
gallium: call util_cpu_detect()
Fix undefined behavior from using util_cpu_caps. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9311>
This commit is contained in:
parent
d06c1e4554
commit
512d281853
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue