r300: Convert to shared debug code.
[mesa.git] / src / mesa / drivers / dri / r300 / r300_cmdbuf.c
index 451f1fd0fabf79686c3b30b8f63816e2877e409c..0fe32a5443aeeb3885e6d6da9419979cf4f4bfaa 100644 (file)
@@ -274,7 +274,7 @@ static void emit_cb_offset(GLcontext *ctx, struct radeon_state_atom * atom)
                return;
        }
 
-        if (RADEON_DEBUG & DEBUG_STATE)
+        if (RADEON_DEBUG & RADEON_STATE)
            fprintf(stderr,"rrb is %p %d %dx%d\n", rrb, offset, rrb->base.Width, rrb->base.Height);
        cbpitch = (rrb->pitch / rrb->cpp);
        if (rrb->cpp == 4)
@@ -494,7 +494,7 @@ void r300InitCmdBuf(r300ContextPtr r300)
        r300->radeon.hw.max_state_size = 2 + 2; /* reserve extra space for WAIT_IDLE and tex cache flush */
 
        mtu = r300->radeon.glCtx->Const.MaxTextureUnits;
-       if (RADEON_DEBUG & DEBUG_TEXTURE) {
+       if (RADEON_DEBUG & RADEON_TEXTURE) {
                fprintf(stderr, "Using %d maximum texture units..\n", mtu);
        }