Mesa (master): iris: Use render_batch/compute_batch locals in memory_barrier
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 20 15:04:48 UTC 2019
Module: Mesa
Branch: master
Commit: c57b4c86c07adce6738c01fae5906f4a4a46d93f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c57b4c86c07adce6738c01fae5906f4a4a46d93f
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Thu Jun 20 10:02:42 2019 -0500
iris: Use render_batch/compute_batch locals in memory_barrier
We have them, may as well use them.
---
src/gallium/drivers/iris/iris_pipe_control.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_pipe_control.c b/src/gallium/drivers/iris/iris_pipe_control.c
index 3d12a5b0360..f686ef745c9 100644
--- a/src/gallium/drivers/iris/iris_pipe_control.c
+++ b/src/gallium/drivers/iris/iris_pipe_control.c
@@ -155,18 +155,18 @@ iris_texture_barrier(struct pipe_context *ctx, unsigned flags)
if (render_batch->contains_draw ||
render_batch->cache.render->entries ||
render_batch->cache.depth->entries) {
- iris_emit_pipe_control_flush(&ice->batches[IRIS_BATCH_RENDER],
+ iris_emit_pipe_control_flush(render_batch,
PIPE_CONTROL_DEPTH_CACHE_FLUSH |
PIPE_CONTROL_RENDER_TARGET_FLUSH |
PIPE_CONTROL_CS_STALL);
- iris_emit_pipe_control_flush(&ice->batches[IRIS_BATCH_RENDER],
+ iris_emit_pipe_control_flush(render_batch,
PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE);
}
if (compute_batch->contains_draw) {
- iris_emit_pipe_control_flush(&ice->batches[IRIS_BATCH_COMPUTE],
+ iris_emit_pipe_control_flush(compute_batch,
PIPE_CONTROL_CS_STALL);
- iris_emit_pipe_control_flush(&ice->batches[IRIS_BATCH_COMPUTE],
+ iris_emit_pipe_control_flush(compute_batch,
PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE);
}
}
More information about the mesa-commit
mailing list