r600g: don't flush caches if we already did so, even for a subset of the flags

Merging the flushes that are left doesn't seem to give a significant
performance improvement

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Bas Nieuwenhuizen 2011-04-13 20:36:15 +02:00 committed by Dave Airlie
parent e3b9cf15bb
commit 02522b76a1
1 changed files with 2 additions and 2 deletions

View File

@ -800,8 +800,8 @@ void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags,
struct radeon_bo *bo;
bo = r600_bo_get_bo(rbo);
/* if bo has already been flush */
if (!(bo->last_flush ^ flush_flags)) {
/* if bo has already been flushed */
if (!(~bo->last_flush & flush_flags)) {
bo->last_flush &= flush_mask;
return;
}