diff options
author | Kenneth Graunke <[email protected]> | 2018-04-22 21:44:40 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:06 -0800 |
commit | 84abf77c67a6a7b809040fba5d69f8429d6e76e3 (patch) | |
tree | 995f2e880457f5cf1fb9fd3ff1c5a893c3a7f9c9 /src | |
parent | 75a16392626ba4a6105d0cd843d592a174ed3334 (diff) |
iris: hacky flushing for now
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_draw.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_draw.c b/src/gallium/drivers/iris/iris_draw.c index d00419ad8d5..ccb55164387 100644 --- a/src/gallium/drivers/iris/iris_draw.c +++ b/src/gallium/drivers/iris/iris_draw.c @@ -36,6 +36,20 @@ iris_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) { struct iris_context *ice = (struct iris_context *) ctx; + // XXX: actually do brw_cache_flush_for_* + iris_emit_pipe_control_flush(&ice->render_batch, + PIPE_CONTROL_DEPTH_CACHE_FLUSH | + PIPE_CONTROL_RENDER_TARGET_FLUSH | + PIPE_CONTROL_CS_STALL); + + iris_emit_pipe_control_flush(&ice->render_batch, + PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE | + PIPE_CONTROL_CONST_CACHE_INVALIDATE); + + iris_cache_sets_clear(&ice->render_batch); + // XXX: ^^^ + + iris_update_compiled_shaders(ice); ice->vtbl.upload_render_state(ice, &ice->render_batch, info); } |