r600g: fix regression in recent state changes.
authorDave Airlie <airlied@redhat.com>
Wed, 8 Jun 2011 03:20:17 +0000 (13:20 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 8 Jun 2011 03:22:02 +0000 (13:22 +1000)
We weren't emitting the SQ setup regs at all which really is
fail.

When a state is always enabled we need to add it to the dirty list
as well.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/r600/drm/r600_hw_context.c

index 1d398bf9d7a63233b6a2c8b23d946d28fb9ed747..50a6dec38ba21a5c89d7f53a53f37f36c4a88eab 100644 (file)
@@ -112,6 +112,7 @@ static void r600_init_block(struct r600_context *ctx,
                if (reg[i+j].flags & REG_FLAG_ENABLE_ALWAYS) {
                        block->status |= R600_BLOCK_STATUS_ENABLED;
                        LIST_ADDTAIL(&block->enable_list, &ctx->enable_list);
+                       LIST_ADDTAIL(&block->list,&ctx->dirty);
                }
 
                if (reg[i+j].flags & REG_FLAG_NEED_BO) {