Mesa (master): iris: Drop fast_clear_color's blorp_flags param
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jan 8 23:28:11 UTC 2021
Module: Mesa
Branch: master
Commit: fb4e67df1e7a2a1ddb6928aae6fd2188aa0c5bf1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb4e67df1e7a2a1ddb6928aae6fd2188aa0c5bf1
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Tue Nov 24 14:18:31 2020 -0800
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 <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7762>
---
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;
}
More information about the mesa-commit
mailing list