summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-12-25 16:24:15 -1000
committerEric Anholt <[email protected]>2014-12-30 14:30:59 -0800
commiteffb39e8998e8fc9e07b2658b9895cf5d3a9cc7a (patch)
tree6bfa1c8aff589da8053c573a0ac451d6755c9f90 /src
parent64dcb2bb0a64258b895222fcf89da35bb8aa4338 (diff)
vc4: Drop the content of vc4_flush_resource().
The callers all follow it with a flush of the context, and the flush of the context gives us more information about how things are being flushed.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c
index df4c2073df4..a26b346955a 100644
--- a/src/gallium/drivers/vc4/vc4_resource.c
+++ b/src/gallium/drivers/vc4/vc4_resource.c
@@ -434,11 +434,11 @@ vc4_surface_destroy(struct pipe_context *pctx, struct pipe_surface *psurf)
static void
vc4_flush_resource(struct pipe_context *pctx, struct pipe_resource *resource)
{
- struct vc4_context *vc4 = vc4_context(pctx);
-
- /* XXX: Skip this if we don't have any queued drawing to it. */
- vc4->base.flush(pctx, NULL, 0);
+ /* All calls to flush_resource are followed by a flush of the context,
+ * so there's nothing to do.
+ */
}
+
static bool
render_blit(struct pipe_context *ctx, struct pipe_blit_info *info)
{