diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index 3d7d1f04739..8e2deb1ea7c 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -107,8 +107,11 @@ static void *r600_buffer_transfer_map(struct pipe_context *pipe, /* Vertex buffers. */ for (i = 0; i < rctx->nr_vertex_buffers; i++) { if (rctx->vertex_buffer[i].buffer == &rbuffer->b.b) { + struct r600_vertexbuf_state * state = + &rctx->vertex_buffer_state; + state->dirty_mask |= 1 << i; r600_inval_vertex_cache(rctx); - r600_atom_dirty(rctx, &rctx->vertex_buffer_state); + r600_atom_dirty(rctx, &state->atom); } } /* Streamout buffers. */ |