radv/winsys: remove unused surface_best()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 30 Oct 2018 10:41:17 +0000 (11:41 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 Oct 2018 08:21:28 +0000 (09:21 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_surface.c

index 526661754fdd5874c8063bff0a25b5211ec19e64..7977d46229ed7890af66a32bae4ca22ae5a6a031 100644 (file)
@@ -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,
index e3ccb812a7f85c87b17c0947eccfdfd9f6aab69a..875ac70de1a4ba0e9572a77570602633d259c3a6 100644 (file)
@@ -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;
 }