summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_resource.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-08-11 11:57:28 -0400
committerRob Clark <[email protected]>2016-08-16 09:21:13 -0400
commita8e6734a83816df2a39e5c4c49721d762caee86b (patch)
treed6d402b474dd2628219583c7ced41b8de2c4e5a8 /src/gallium/drivers/freedreno/freedreno_resource.h
parent142dd7b9c043fca81f8ef1d0bbd378968f9260df (diff)
freedreno: support for using generic clear path
Since clears are more or less just normal draws, there isn't that much benefit in having hand-rolled clear path. Add support to use u_blitter instead if gen specific backend doesn't implement ctx->clear(). Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_resource.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h
index 8caab6b8a5a..60ba7e6961f 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.h
+++ b/src/gallium/drivers/freedreno/freedreno_resource.h
@@ -154,6 +154,10 @@ fd_resource_offset(struct fd_resource *rsc, unsigned level, unsigned layer)
return offset;
}
+void fd_blitter_pipe_begin(struct fd_context *ctx, bool render_cond, bool discard,
+ enum fd_render_stage stage);
+void fd_blitter_pipe_end(struct fd_context *ctx);
+
void fd_resource_screen_init(struct pipe_screen *pscreen);
void fd_resource_context_init(struct pipe_context *pctx);