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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user