meson: Link Gallium Nine with ld_args_build_id
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Thu, 9 Apr 2020 09:29:54 +0000 (11:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Apr 2020 00:22:45 +0000 (00:22 +0000)
commitc38946e62ddce554d20bf913cebeebf25bf153a4
tree8b689a57bc10db1ed98bf76ec49b0c37f2b6d2fe
parent924f3f3de72a05dac1757e29b971cc680349b18b
meson: Link Gallium Nine with ld_args_build_id

This fixes an assertion in iris_disk_cache_init() when the initialization
goes through drm_create_adapter(), which lives in d3dadapter9.so.
In this case build_id_find_nhdr_for_addr() fails and returns NULL, since
the shared library does not include a build ID.

The issue can be reproduced with an iris capable GPU and Xnine, while
removing the shader cache prior to launching the application.

Fix this by doing the same as in 29ea92e6a1e8f5cb3295011d907ea211d6f8f644.

Fixes: 4756864cdc5f "iris: Start wiring up on-disk shader cache"
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4499>
src/gallium/targets/d3dadapter9/meson.build