radv: Cleanup buffer_from_fd.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 24 Sep 2019 15:26:41 +0000 (17:26 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 10 Oct 2019 17:02:34 +0000 (17:02 +0000)
Unused stride/offset args.

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

index 7562f0c98e0f2e6cd34ed8c8743cc34018e85266..072b944169a8cce5bb453fdf7c2ded25e031d517 100644 (file)
@@ -3484,7 +3484,7 @@ static VkResult radv_alloc_memory(struct radv_device *device,
                       import_info->handleType ==
                       VK_EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT);
                mem->bo = device->ws->buffer_from_fd(device->ws, import_info->fd,
-                                                    priority, NULL, NULL);
+                                                    priority);
                if (!mem->bo) {
                        result = VK_ERROR_INVALID_EXTERNAL_HANDLE;
                        goto fail;
index ae682e52f11adbdc4dc0abc15a2e9fe76caecb6e..20876807662a59192860fb2ade6ca3bf476aec80 100644 (file)
@@ -243,8 +243,7 @@ struct radeon_winsys {
 
        struct radeon_winsys_bo *(*buffer_from_fd)(struct radeon_winsys *ws,
                                                   int fd,
-                                                  unsigned priority,
-                                                  unsigned *stride, unsigned *offset);
+                                                  unsigned priority);
 
        bool (*buffer_get_fd)(struct radeon_winsys *ws,
                              struct radeon_winsys_bo *bo,
index bd5ffbe796119a9bc60169ff7b300275004c50e3..d75c12870945d035a72e45d21511b1bc0e1ddc76 100644 (file)
@@ -533,9 +533,7 @@ error:
 
 static struct radeon_winsys_bo *
 radv_amdgpu_winsys_bo_from_fd(struct radeon_winsys *_ws,
-                             int fd, unsigned priority,
-                             unsigned *stride,
-                             unsigned *offset)
+                             int fd, unsigned priority)
 {
        struct radv_amdgpu_winsys *ws = radv_amdgpu_winsys(_ws);
        struct radv_amdgpu_winsys_bo *bo;