diff options
author | Francisco Jerez <[email protected]> | 2020-02-05 20:29:09 -0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-03 23:12:22 +0000 |
commit | 4b00338bdee7f91f242a1152327cd01fe58c56bd (patch) | |
tree | 3f3faa70382eea81e03bc1d7c2d98a1ec77f5e75 /src/gallium/drivers/iris/iris_resolve.c | |
parent | 46adb83a2930d346dd2ce2d4d19dfec02e0f7ca1 (diff) |
iris: Remove iris_flush_depth_and_render_caches().
This helper is unused now.
Reviewed-by: Kenneth Graunke <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3875>
Diffstat (limited to 'src/gallium/drivers/iris/iris_resolve.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_resolve.c | 27 |
1 files changed, 0 insertions, 27 deletions
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) { |