panfrost: Remove flush_frontbuffer
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 19 Feb 2020 12:56:43 +0000 (07:56 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Feb 2020 13:04:52 +0000 (13:04 +0000)
A relic from software rasterizers. Hardware drivers generally don't need
to implement this.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3878>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3878>

src/gallium/drivers/panfrost/pan_screen.c

index 2d6fe3377d24990a8fe586ae0637df5348b1d9ec..0ad0c2bf63892b26c48e71596117e4c59285971e 100644 (file)
@@ -579,16 +579,6 @@ panfrost_destroy_screen(struct pipe_screen *pscreen)
         ralloc_free(screen);
 }
 
-static void
-panfrost_flush_frontbuffer(struct pipe_screen *_screen,
-                           struct pipe_resource *resource,
-                           unsigned level, unsigned layer,
-                           void *context_private,
-                           struct pipe_box *sub_box)
-{
-        /* TODO: Display target integration */
-}
-
 static uint64_t
 panfrost_get_timestamp(struct pipe_screen *_screen)
 {
@@ -789,7 +779,6 @@ panfrost_create_screen(int fd, struct renderonly *ro)
         screen->base.get_timestamp = panfrost_get_timestamp;
         screen->base.is_format_supported = panfrost_is_format_supported;
         screen->base.context_create = panfrost_create_context;
-        screen->base.flush_frontbuffer = panfrost_flush_frontbuffer;
         screen->base.get_compiler_options = panfrost_screen_get_compiler_options;
         screen->base.fence_reference = panfrost_fence_reference;
         screen->base.fence_finish = panfrost_fence_finish;