From 4b00338bdee7f91f242a1152327cd01fe58c56bd Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Wed, 5 Feb 2020 20:29:09 -0800 Subject: [PATCH] iris: Remove iris_flush_depth_and_render_caches(). This helper is unused now. Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/drivers/iris/iris_context.h | 1 - src/gallium/drivers/iris/iris_resolve.c | 27 ------------------------- 2 files changed, 28 deletions(-) diff --git a/src/gallium/drivers/iris/iris_context.h b/src/gallium/drivers/iris/iris_context.h index 9d799d888bc..94a7a916727 100644 --- a/src/gallium/drivers/iris/iris_context.h +++ b/src/gallium/drivers/iris/iris_context.h @@ -910,7 +910,6 @@ void iris_predraw_resolve_framebuffer(struct iris_context *ice, bool *draw_aux_buffer_disabled); void iris_postdraw_update_resolve_tracking(struct iris_context *ice, struct iris_batch *batch); -void iris_flush_depth_and_render_caches(struct iris_batch *batch); void iris_cache_flush_for_render(struct iris_batch *batch, struct iris_bo *bo, enum isl_format format, diff --git a/src/gallium/drivers/iris/iris_resolve.c b/src/gallium/drivers/iris/iris_resolve.c index 88aa4b1dec7..71530f4b311 100644 --- a/src/gallium/drivers/iris/iris_resolve.c +++ b/src/gallium/drivers/iris/iris_resolve.c @@ -332,33 +332,6 @@ iris_postdraw_update_resolve_tracking(struct iris_context *ice, } } -/** - * Emits an appropriate flush for a BO if it has been rendered to within the - * same batchbuffer as a read that's about to be emitted. - * - * The GPU has separate, incoherent caches for the render cache and the - * sampler cache, along with other caches. Usually data in the different - * caches don't interact (e.g. we don't render to our driver-generated - * immediate constant data), but for render-to-texture in FBOs we definitely - * do. When a batchbuffer is flushed, the kernel will ensure that everything - * necessary is flushed before another use of that BO, but for reuse from - * different caches within a batchbuffer, it's all our responsibility. - */ -void -iris_flush_depth_and_render_caches(struct iris_batch *batch) -{ - iris_emit_pipe_control_flush(batch, - "cache tracker: render-to-texture", - PIPE_CONTROL_DEPTH_CACHE_FLUSH | - PIPE_CONTROL_RENDER_TARGET_FLUSH | - PIPE_CONTROL_CS_STALL); - - iris_emit_pipe_control_flush(batch, - "cache tracker: render-to-texture", - PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE | - PIPE_CONTROL_CONST_CACHE_INVALIDATE); -} - static void * format_aux_tuple(enum isl_format format, enum isl_aux_usage aux_usage) { -- 2.30.2