Skip to content

meson: add missing dependency

Eric Engestrom requested to merge eric/mesa:fix-missing-dep_valgrind into main

Now that renderonly.h includes util/simple_mtx.h, which itself includes valgrind.h, dep_valgrind is required by any module that includes renderonly.h.

In file included from ../src/gallium/auxiliary/renderonly/renderonly.h:33,
                 from ../src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c:39:
../src/util/simple_mtx.h:34:12: fatal error: valgrind.h: No such file or directory
   34 | #  include <valgrind.h>
      |            ^~~~~~~~~~~~
compilation terminated.

dep_valgrind is part of idep_mesautil, which should be used instead of copying the list of deps for each util header included (which would have to be updated every time a util header changes its own includes), so let's add idep_mesautil everywhere that includes renderonly.h.

Fixes: ad4d7ca8 ("kmsro: Fix renderonly_scanout BO aliasing")
/cc @asahilina

Merge request reports