summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-08-23 09:33:50 -0400
committerRob Clark <[email protected]>2014-08-24 13:09:00 -0400
commitb40a6c2b17de1f63d70d62608737ed9a259da1c5 (patch)
treec6764e0c1e39cb7ca287c8291836736ac06847d3 /src
parent478a08ebd2b29724f2d440e560ab331c534236cd (diff)
freedreno: implement pipe_flush_resource()
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c
index 65dfc0486c3..034e4b4f5ac 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.c
+++ b/src/gallium/drivers/freedreno/freedreno_resource.c
@@ -438,8 +438,12 @@ fd_blitter_pipe_end(struct fd_context *ctx)
}
static void
-fd_flush_resource(struct pipe_context *ctx, struct pipe_resource *resource)
+fd_flush_resource(struct pipe_context *pctx, struct pipe_resource *prsc)
{
+ struct fd_resource *rsc = fd_resource(prsc);
+
+ if (rsc->dirty)
+ fd_context_render(pctx);
}
void