From: Samuel Pitoiset Date: Tue, 30 Oct 2018 10:41:17 +0000 (+0100) Subject: radv/winsys: remove unused surface_best() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d12dd16a970c2ba71358f3b023993676e4555151;p=mesa.git radv/winsys: remove unused surface_best() Signed-off-by: Samuel Pitoiset Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_radeon_winsys.h b/src/amd/vulkan/radv_radeon_winsys.h index 526661754fd..7977d46229e 100644 --- a/src/amd/vulkan/radv_radeon_winsys.h +++ b/src/amd/vulkan/radv_radeon_winsys.h @@ -268,9 +268,6 @@ struct radeon_winsys { const struct ac_surf_info *surf_info, struct radeon_surf *surf); - int (*surface_best)(struct radeon_winsys *ws, - struct radeon_surf *surf); - struct radeon_winsys_fence *(*create_fence)(); void (*destroy_fence)(struct radeon_winsys_fence *fence); bool (*fence_wait)(struct radeon_winsys *ws, diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c index e3ccb812a7f..875ac70de1a 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c @@ -97,14 +97,7 @@ static int radv_amdgpu_winsys_surface_init(struct radeon_winsys *_ws, return ac_compute_surface(ws->addrlib, &ws->info, &config, mode, surf); } -static int radv_amdgpu_winsys_surface_best(struct radeon_winsys *rws, - struct radeon_surf *surf) -{ - return 0; -} - void radv_amdgpu_surface_init_functions(struct radv_amdgpu_winsys *ws) { ws->base.surface_init = radv_amdgpu_winsys_surface_init; - ws->base.surface_best = radv_amdgpu_winsys_surface_best; }