mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
r600g: invalidate caches at the beginning of CS
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a633d82ce3
commit
c7d0e9ec32
1 changed files with 9 additions and 0 deletions
|
|
@ -1197,7 +1197,16 @@ void r600_context_flush(struct r600_context *ctx, unsigned flags)
|
|||
ctx->pm4_dirty_cdwords = 0;
|
||||
ctx->flags = 0;
|
||||
|
||||
/* Begin a new CS. */
|
||||
r600_emit_atom(ctx, &ctx->start_cs_cmd.atom);
|
||||
|
||||
/* Invalidate caches. */
|
||||
r600_inval_vertex_cache(ctx);
|
||||
r600_inval_texture_cache(ctx);
|
||||
r600_inval_shader_cache(ctx);
|
||||
r600_flush_framebuffer(ctx, false);
|
||||
|
||||
/* Re-emit states. */
|
||||
r600_atom_dirty(ctx, &ctx->db_misc_state.atom);
|
||||
r600_atom_dirty(ctx, &ctx->vertex_buffer_state);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue