turnip: Use libdrm shim
Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21636>
This commit is contained in:
@@ -8,9 +8,6 @@
|
||||
*/
|
||||
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_LIBDRM
|
||||
#include <xf86drm.h>
|
||||
#endif
|
||||
|
||||
#ifdef MAJOR_IN_MKDEV
|
||||
#include <sys/mkdev.h>
|
||||
@@ -19,6 +16,8 @@
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#include "util/libdrm.h"
|
||||
|
||||
#include "tu_device.h"
|
||||
#include "tu_knl.h"
|
||||
|
||||
@@ -158,7 +157,6 @@ tu_physical_device_try_create(struct vk_instance *vk_instance,
|
||||
struct _drmDevice *drm_device,
|
||||
struct vk_physical_device **out)
|
||||
{
|
||||
#ifdef HAVE_LIBDRM
|
||||
struct tu_instance *instance =
|
||||
container_of(vk_instance, struct tu_instance, vk);
|
||||
|
||||
@@ -252,7 +250,4 @@ out:
|
||||
drmFreeVersion(version);
|
||||
|
||||
return result;
|
||||
#else
|
||||
return VK_ERROR_INCOMPATIBLE_DRIVER;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user