radeonsi: move blitter clear_render_target impl into si_gfx_clear_render_target

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28725>
This commit is contained in:
Marek Olšák
2024-03-24 02:47:59 -04:00
committed by Marge Bot
parent 82e63db91f
commit a03df53d3b
2 changed files with 15 additions and 0 deletions
+11
View File
@@ -1273,6 +1273,17 @@ static void si_clear_render_target(struct pipe_context *ctx, struct pipe_surface
return;
}
si_gfx_clear_render_target(ctx, dst, color, dstx, dsty, width, height,
render_condition_enabled);
}
void si_gfx_clear_render_target(struct pipe_context *ctx, struct pipe_surface *dst,
const union pipe_color_union *color, unsigned dstx,
unsigned dsty, unsigned width, unsigned height,
bool render_condition_enabled)
{
struct si_context *sctx = (struct si_context *)ctx;
si_blitter_begin(sctx,
SI_CLEAR_SURFACE | (render_condition_enabled ? 0 : SI_DISABLE_RENDER_COND));
util_blitter_clear_render_target(sctx->blitter, dst, color, dstx, dsty, width, height);
+4
View File
@@ -1476,6 +1476,10 @@ void si_init_buffer_clear(struct si_clear_info *info,
uint32_t size, uint32_t clear_value);
void si_execute_clears(struct si_context *sctx, struct si_clear_info *info,
unsigned num_clears, unsigned types);
void si_gfx_clear_render_target(struct pipe_context *ctx, struct pipe_surface *dst,
const union pipe_color_union *color, unsigned dstx,
unsigned dsty, unsigned width, unsigned height,
bool render_condition_enabled);
void si_init_clear_functions(struct si_context *sctx);
/* si_compute.c */