radv: Remove device path.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 5 Jan 2019 16:40:37 +0000 (17:40 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 7 Jan 2019 22:15:14 +0000 (23:15 +0100)
unused and gcc complains about strncpy. (from what I can see because
strncpy does not leave a 0 byte on truncate. That said we don't use
it so this does not fix a real bug).

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h

index 53aed1a15db56b6c1e8637a19146a3b13f7c718c..814b5ccbd1163a3fe213784a27768473390a8944 100644 (file)
@@ -270,8 +270,6 @@ radv_physical_device_init(struct radv_physical_device *device,
 
        device->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
        device->instance = instance;
-       assert(strlen(path) < ARRAY_SIZE(device->path));
-       strncpy(device->path, path, ARRAY_SIZE(device->path));
 
        device->ws = radv_amdgpu_winsys_create(fd, instance->debug_flags,
                                               instance->perftest_flags);
index b9a1f7e3b7c51b7b14a04f4ad15abad768450cb4..bd489b64a80b9bc23a9d7c425a034f460e59303b 100644 (file)
@@ -285,7 +285,6 @@ struct radv_physical_device {
 
        struct radeon_winsys *ws;
        struct radeon_info rad_info;
-       char                                        path[20];
        char                                        name[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
        uint8_t                                     driver_uuid[VK_UUID_SIZE];
        uint8_t                                     device_uuid[VK_UUID_SIZE];