[Mesa-stable] [PATCH 2/6] freedreno: implement pipe_flush_resource()
Rob Clark
robdclark at gmail.com
Tue Sep 2 13:16:21 PDT 2014
From: Rob Clark <robclark at freedesktop.org>
Signed-off-by: Rob Clark <robclark at freedesktop.org>
---
src/gallium/drivers/freedreno/freedreno_resource.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c
index 65dfc04..034e4b4 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
--
1.9.3
More information about the mesa-stable
mailing list