Revert "gallium: add st_context_iface::flush_resource to call FLUSH_VERTICES"
authorDaniel Stone <daniels@collabora.com>
Mon, 20 Jan 2020 12:33:29 +0000 (12:33 +0000)
committerDaniel Stone <daniels@collabora.com>
Mon, 20 Jan 2020 12:33:29 +0000 (12:33 +0000)
This reverts commit bec9c90b5ecf9cc2dc580f9ff297f94ba5aa3506.

Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3472>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3472>

src/gallium/include/state_tracker/st_api.h
src/mesa/state_tracker/st_manager.c

index 955d84b5b4442d6be4aa6b0beb4344a6b917f9f9..0b953d6fb388cb629c1dcd9f7a732bbf9304681e 100644 (file)
@@ -395,13 +395,6 @@ struct st_context_iface
                  void (*notify_before_flush_cb) (void*),
                  void* notify_before_flush_cb_args);
 
-   /**
-    * Flush all enqueued vertices (e.g. vbo module) and call
-    * pipe_context::flush_resource.
-    */
-   void (*flush_resource)(struct st_context_iface *stctxi,
-                          struct pipe_resource *resource);
-
    /**
     * Replace the texture image of a texture object at the specified level.
     *
index a504ace5dffc9df58fd7dc0a57161b10b8894b45..c3688c4818e3eabc7dcdcf6bf8e8dd95f9a77160 100644 (file)
@@ -688,19 +688,6 @@ st_context_flush(struct st_context_iface *stctxi, unsigned flags,
       st->gfx_shaders_may_be_dirty = true;
 }
 
-static void
-st_context_flush_resource(struct st_context_iface *stctxi,
-                          struct pipe_resource *resource)
-{
-   struct st_context *st = (struct st_context *) stctxi;
-   struct pipe_context *pipe = st->pipe;
-
-   FLUSH_VERTICES(st->ctx, 0);
-   FLUSH_CURRENT(st->ctx, 0);
-
-   pipe->flush_resource(pipe, resource);
-}
-
 static bool
 st_context_teximage(struct st_context_iface *stctxi,
                     enum st_texture_type tex_type,
@@ -995,7 +982,6 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
 
    st->iface.destroy = st_context_destroy;
    st->iface.flush = st_context_flush;
-   st->iface.flush_resource = st_context_flush_resource;
    st->iface.teximage = st_context_teximage;
    st->iface.copy = st_context_copy;
    st->iface.share = st_context_share;