freedreno: implement pipe_flush_resource()
authorRob Clark <robclark@freedesktop.org>
Sat, 23 Aug 2014 13:33:50 +0000 (09:33 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 24 Aug 2014 17:09:00 +0000 (13:09 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_resource.c

index 65dfc0486c38e5763d3a2d6f91918c7aaf44cf37..034e4b4f5ac6300c3a87b46adda260f871d4954e 100644 (file)
@@ -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