diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-03-08 11:34:28 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-03-15 15:58:12 +0100 |
commit | 79ddcb93fbd9d9786e4c7a6da4c71005b587a1bb (patch) | |
tree | bc6c5cf5659bed3b0375436f01fffaaa1d2da828 /src/gallium/drivers | |
parent | aea4ed41ed9b4d0442d1090ac1f01231a9859796 (diff) |
r300g: implement the texture barrier
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index d449265b66..ecb4fc691c 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1870,6 +1870,14 @@ static void r300_set_constant_buffer(struct pipe_context *pipe, } } +static void r300_texture_barrier(struct pipe_context *pipe) +{ + struct r300_context *r300 = r300_context(pipe); + + r300_mark_atom_dirty(r300, &r300->gpu_flush); + r300_mark_atom_dirty(r300, &r300->texture_cache_inval); +} + void r300_init_state_functions(struct r300_context* r300) { r300->context.create_blend_state = r300_create_blend_state; @@ -1925,4 +1933,6 @@ void r300_init_state_functions(struct r300_context* r300) r300->context.create_vs_state = r300_create_vs_state; r300->context.bind_vs_state = r300_bind_vs_state; r300->context.delete_vs_state = r300_delete_vs_state; + + r300->context.texture_barrier = r300_texture_barrier; } |