r600g: Check for Evergreen chip class instead of Cedar family in r600_context_flush().
authorHenri Verbeet <hverbeet@gmail.com>
Sat, 9 Jul 2011 15:19:00 +0000 (17:19 +0200)
committerHenri Verbeet <hverbeet@gmail.com>
Sat, 9 Jul 2011 16:12:50 +0000 (18:12 +0200)
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
src/gallium/winsys/r600/drm/r600_hw_context.c

index 633cd35f7a7177c0c6971e0fb63113d5314f3d8c..a2f13ff086394ba906c3f62d9c9f2689d8c6b06d 100644 (file)
@@ -1504,7 +1504,7 @@ void r600_context_flush(struct r600_context *ctx)
        /* suspend queries */
        r600_context_queries_suspend(ctx);
 
-       if (ctx->radeon->family >= CHIP_CEDAR)
+       if (ctx->radeon->chip_class >= EVERGREEN)
                evergreen_context_flush_dest_caches(ctx);
        else
                r600_context_flush_dest_caches(ctx);