turnip: remove unnecessary libfreedreno_drm dep
authorChia-I Wu <olvaffe@gmail.com>
Fri, 11 Jan 2019 18:09:53 +0000 (10:09 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:01:41 +0000 (10:01 -0700)
Remove libfreedreno_drm dep and unused fd_device.

src/freedreno/vulkan/meson.build
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_private.h

index 889dad9b1deda412e7409078c9cd92792f64eb42..e6931645c96805e6c0902d427aa23b486c455d56 100644 (file)
@@ -84,7 +84,6 @@ libvulkan_freedreno = shared_library(
     inc_freedreno,
   ],
   link_with : [
-    libfreedreno_drm,
     libvulkan_util,
     libmesa_util,
   ],
index c7550ae03de7b92e99665052b8459d77d43f4aee..65a0e40545280bfd7d6f5e5639bf863a587563e1 100644 (file)
@@ -214,15 +214,6 @@ tu_physical_device_init(struct tu_physical_device *device,
    device->master_fd = master_fd;
    device->local_fd = fd;
 
-   device->drm_device = fd_device_new_dup(fd);
-   if (!device->drm_device) {
-      if (instance->debug_flags & TU_DEBUG_STARTUP)
-         tu_logi("Could not create the libdrm device");
-      result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
-                         "could not create the libdrm device");
-      goto fail;
-   }
-
    if (tu_drm_query_param(device, MSM_PARAM_GPU_ID, &val)) {
       if (instance->debug_flags & TU_DEBUG_STARTUP)
          tu_logi("Could not query the GPU ID");
@@ -282,8 +273,6 @@ tu_physical_device_init(struct tu_physical_device *device,
    return VK_SUCCESS;
 
 fail:
-   if (device->drm_device)
-      fd_device_del(device->drm_device);
    close(fd);
    if (master_fd != -1)
       close(master_fd);
index 5a9e55aa8efbf5cf16623050da1af250f58d6b84..7209785840ea5596fa7e07bb4a4e677c0e749dba 100644 (file)
@@ -66,7 +66,6 @@ typedef uint32_t xcb_window_t;
 #include <vulkan/vulkan.h>
 #include <vulkan/vulkan_intel.h>
 
-#include "drm/freedreno_ringbuffer.h"
 #include "tu_entrypoints.h"
 
 #define MAX_VBS 32
@@ -293,7 +292,6 @@ struct tu_physical_device
    int local_fd;
    int master_fd;
 
-   struct fd_device *drm_device;
    unsigned gpu_id;
    uint32_t gmem_size;