From fb4e67df1e7a2a1ddb6928aae6fd2188aa0c5bf1 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Tue, 24 Nov 2020 14:18:31 -0800 Subject: [PATCH] iris: Drop fast_clear_color's blorp_flags param Now that conditional fast clears are disabled, the blorp_flags parameter is unused. Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/drivers/iris/iris_clear.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index e64bbcae5b3..70023df8f9c 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -213,8 +213,7 @@ fast_clear_color(struct iris_context *ice, unsigned level, const struct pipe_box *box, enum isl_format format, - union isl_color_value color, - enum blorp_batch_flags blorp_flags) + union isl_color_value color) { struct iris_batch *batch = &ice->batches[IRIS_BATCH_RENDER]; struct pipe_resource *p_res = (void *) res; @@ -303,6 +302,7 @@ fast_clear_color(struct iris_context *ice, /* If we reach this point, we need to fast clear to change the state to * ISL_AUX_STATE_CLEAR, or to update the fast clear color (or both). */ + enum blorp_batch_flags blorp_flags = 0; blorp_flags |= color_changed ? 0 : BLORP_BATCH_NO_UPDATE_CLEAR_COLOR; struct blorp_batch blorp_batch; @@ -362,8 +362,7 @@ clear_color(struct iris_context *ice, render_condition_enabled, format, color); if (can_fast_clear) { - fast_clear_color(ice, res, level, box, format, color, - blorp_flags); + fast_clear_color(ice, res, level, box, format, color); return; }