llvmpipe: Only use udmabuf if header is found

Fixes #11032

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28810>
This commit is contained in:
Lucas Fryzek
2024-04-18 07:36:06 -04:00
committed by Marge Bot
parent 053b5f3e0c
commit 112063a060
3 changed files with 16 additions and 16 deletions

View File

@@ -1373,7 +1373,7 @@ if not ['linux'].contains(host_machine.system())
endif
foreach h : ['xlocale.h', 'linux/futex.h', 'endian.h', 'dlfcn.h', 'sys/shm.h',
'cet.h', 'pthread_np.h', 'renderdoc_app.h', 'sys/inotify.h']
'cet.h', 'pthread_np.h', 'renderdoc_app.h', 'sys/inotify.h', 'linux/udmabuf.h']
if cc.check_header(h)
pre_args += '-DHAVE_@0@'.format(h.to_upper().underscorify())
endif