projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a633d82
)
r600g: invalidate caches at the beginning of CS
author
Marek Olšák
<maraeo@gmail.com>
Mon, 2 Apr 2012 03:01:20 +0000
(
05:01
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Wed, 4 Apr 2012 11:09:47 +0000
(13:09 +0200)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_hw_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_hw_context.c
b/src/gallium/drivers/r600/r600_hw_context.c
index 46c8c0461d1064d947a2c1c66a6f6bd959fa44f7..e898a598e3e2e756edd22f4f850de1d243bfa053 100644
(file)
--- a/
src/gallium/drivers/r600/r600_hw_context.c
+++ b/
src/gallium/drivers/r600/r600_hw_context.c
@@
-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);