block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY);
r600_bo_reference(ctx->radeon, &block->reloc[1].bo, NULL);
r600_bo_reference(ctx->radeon , &block->reloc[2].bo, NULL);
- LIST_DEL(&block->list);
+ LIST_DELINIT(&block->list);
return;
}
block->reg[0] = state->regs[0].value;
block = range->blocks[CTX_BLOCK_ID(ctx, offset)];
if (state == NULL) {
block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY);
- LIST_DEL(&block->list);
+ LIST_DELINIT(&block->list);
return;
}
block->reg[0] = state->regs[0].value;
block = range->blocks[CTX_BLOCK_ID(ctx, fake_offset)];
if (state == NULL) {
block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY);
- LIST_DEL(&block->list);
+ LIST_DELINIT(&block->list);
return;
}
if (state->nregs <= 3) {
block->reg = &block->pm4[block->pm4_ndwords];
block->pm4_ndwords += n;
block->nreg = n;
+ LIST_INITHEAD(&block->list);
+
for (j = 0; j < n; j++) {
if (reg[i+j].need_bo) {
block->nbo++;
block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY);
r600_bo_reference(ctx->radeon, &block->reloc[1].bo, NULL);
r600_bo_reference(ctx->radeon , &block->reloc[2].bo, NULL);
- LIST_DEL(&block->list);
+ LIST_DELINIT(&block->list);
return;
}
block->reg[0] = state->regs[0].value;
block = range->blocks[CTX_BLOCK_ID(ctx, offset)];
if (state == NULL) {
block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY);
- LIST_DEL(&block->list);
+ LIST_DELINIT(&block->list);
return;
}
block->reg[0] = state->regs[0].value;
block = range->blocks[CTX_BLOCK_ID(ctx, offset)];
if (state == NULL) {
block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY);
- LIST_DEL(&block->list);
+ LIST_DELINIT(&block->list);
return;
}
if (state->nregs <= 3) {
void r600_context_query_destroy(struct r600_context *ctx, struct r600_query *query)
{
r600_bo_reference(ctx->radeon, &query->buffer, NULL);
- LIST_DEL(&query->list);
+ LIST_DELINIT(&query->list);
free(query);
}