diff options
author | Sonny Jiang <[email protected]> | 2019-01-21 18:16:40 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-02-04 18:46:25 -0500 |
commit | 984fd73515270fbc9c934ccad63a9d6a958b4b04 (patch) | |
tree | 1381fecf39929b3e4c970ad44405b24df57f7930 /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | dc46317d1ab1805feacd94297bd9e57b6881c4d3 (diff) |
radeonsi: use compute for clear_render_target when possible
Signed-off-by: Sonny Jiang <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index eb3ba951dae..4f2845854c3 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -802,6 +802,8 @@ struct si_context { void *cs_copy_buffer; void *cs_copy_image; void *cs_copy_image_1d_array; + void *cs_clear_render_target; + void *cs_clear_render_target_1d_array; struct si_screen *screen; struct pipe_debug_callback debug; struct ac_llvm_compiler compiler; /* only non-threaded compilation */ @@ -1179,6 +1181,11 @@ void si_compute_copy_image(struct si_context *sctx, unsigned src_level, unsigned dstx, unsigned dsty, unsigned dstz, const struct pipe_box *src_box); +void si_compute_clear_render_target(struct pipe_context *ctx, + struct pipe_surface *dstsurf, + const union pipe_color_union *color, + unsigned dstx, unsigned dsty, + unsigned width, unsigned height); void si_init_compute_blit_functions(struct si_context *sctx); /* si_cp_dma.c */ @@ -1294,6 +1301,8 @@ void *si_create_dma_compute_shader(struct pipe_context *ctx, bool dst_stream_cache_policy, bool is_copy); void *si_create_copy_image_compute_shader(struct pipe_context *ctx); void *si_create_copy_image_compute_shader_1d_array(struct pipe_context *ctx); +void *si_clear_render_target_shader(struct pipe_context *ctx); +void *si_clear_render_target_shader_1d_array(struct pipe_context *ctx); void *si_create_query_result_cs(struct si_context *sctx); /* si_test_dma.c */ |