From fd8d4b32ede6ebeae332539b71d38c36420e2654 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 18 Feb 2011 15:29:00 +0100 Subject: r300g: remove tracking whether vertex buffers need to be validated This was getting hard to maintain and didn't really bring any real benefits. Instead, validate buffers when the vertex array state is dirty. --- src/gallium/drivers/r300/r300_flush.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/gallium/drivers/r300/r300_flush.c') diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index c4bb332aec..c77cc08539 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -77,10 +77,6 @@ static void r300_flush(struct pipe_context* pipe, r300->vs_state.dirty = FALSE; r300->vs_constants.dirty = FALSE; } - - r300->validate_buffers = TRUE; - r300->upload_vb_validated = FALSE; - r300->upload_ib_validated = FALSE; } else { if (rfence) { /* We have to create a fence object, but the command stream is empty -- cgit v1.2.3