r600g: fix logic error in 028987c80362eddd39176628486a456b076f0427
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 14 Mar 2011 22:07:15 +0000 (18:07 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 14 Mar 2011 22:07:15 +0000 (18:07 -0400)
Spotted by Henri on IRC.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/winsys/r600/drm/r600_hw_context.c

index ff662a2..a7c2178 100644 (file)
@@ -764,7 +764,7 @@ static void rv6xx_context_surface_base_update(struct r600_context *ctx,
                                              unsigned base_update_flags)
 {
        /* need to emit surface base update on rv6xx */
-       if ((ctx->radeon->family > CHIP_R600) ||
+       if ((ctx->radeon->family > CHIP_R600) &&
            (ctx->radeon->family < CHIP_RV770)) {
                ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_SURFACE_BASE_UPDATE, 0, 0);
                ctx->pm4[ctx->pm4_cdwords++] = base_update_flags;