diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-12-07 07:54:31 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-12-07 08:46:18 +0100 |
commit | 4953ba6a717ad1d3aa4426d147b52d05932c47ab (patch) | |
tree | f30608d28c439c83365fc273795d5ee1c3ac4e60 /src/gallium/drivers/r300/r300_flush.c | |
parent | 78068a5fbfc21fb52b289a81142b4211628f845c (diff) | |
download | external_mesa3d-4953ba6a717ad1d3aa4426d147b52d05932c47ab.zip external_mesa3d-4953ba6a717ad1d3aa4426d147b52d05932c47ab.tar.gz external_mesa3d-4953ba6a717ad1d3aa4426d147b52d05932c47ab.tar.bz2 |
r300g: validate buffers only if any of bound buffers is changed
This prevents needless buffer validation (CS space checking).
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_flush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index 074c5c8..451fe52 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -68,6 +68,8 @@ static void r300_flush(struct pipe_context* pipe, r300->vs_state.dirty = FALSE; r300->vs_constants.dirty = FALSE; } + + r300->validate_buffers = TRUE; } /* reset flushed query */ |