iris: comment about reemitting and flushing
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Jun 2018 09:28:56 +0000 (02:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:06 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_draw.c
src/gallium/drivers/iris/iris_program.c

index 5295f2ac8476a220ca873f585dc88123244a0481..9101d7a58abcd468c1fac7b7bbea4ab706537e56 100644 (file)
@@ -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);
 }
index 59fcbed63026c3b0ffb369da2f5849a4fb8eea64..669754e8aafadea54f9397b0987a7af29f0d95c4 100644 (file)
@@ -464,6 +464,7 @@ iris_update_compiled_shaders(struct iris_context *ice)
          old_prog_datas[i] = get_vue_prog_data(ice, i);
    }
 
+   // XXX: dirty bits...
    iris_update_compiled_vs(ice);
    iris_update_compiled_tcs(ice);
    iris_update_compiled_tes(ice);