summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_draw.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-06-07 02:28:56 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit7c40cdc12f4f5aaf8361de5bb0e7939b585481c4 (patch)
tree32b86a9253ea37fe510ef2f1c79848b46d918709 /src/gallium/drivers/iris/iris_draw.c
parentd46c5b7c6c86b7061204506d53fd7b4c87527a47 (diff)
iris: comment about reemitting and flushing
Diffstat (limited to 'src/gallium/drivers/iris/iris_draw.c')
-rw-r--r--src/gallium/drivers/iris/iris_draw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_draw.c b/src/gallium/drivers/iris/iris_draw.c
index 5295f2ac847..9101d7a58ab 100644
--- a/src/gallium/drivers/iris/iris_draw.c
+++ b/src/gallium/drivers/iris/iris_draw.c
@@ -40,6 +40,7 @@ iris_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
iris_batch_maybe_flush(batch, 1500);
// XXX: actually do brw_cache_flush_for_*
+ // XXX: CS stall is really expensive
iris_emit_pipe_control_flush(batch,
PIPE_CONTROL_DEPTH_CACHE_FLUSH |
PIPE_CONTROL_RENDER_TARGET_FLUSH |
@@ -56,6 +57,8 @@ iris_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
iris_binder_reserve_3d(batch, ice->shaders.prog);
ice->vtbl.upload_render_state(ice, batch, info);
+ // XXX: ice->state.dirty = 0ull;
+
// XXX: don't flush always
- iris_batch_flush(batch);
+ //iris_batch_flush(batch);
}