static void nv10_clear(struct gl_context *ctx, GLbitfield buffers) { struct nouveau_context *nctx = to_nouveau_context(ctx); struct nouveau_pushbuf *push = context_push(ctx); nouveau_validate_framebuffer(ctx); nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); if (nouveau_pushbuf_validate(push)) { nouveau_pushbuf_bufctx(push, NULL); return; } if ((buffers & BUFFER_BIT_DEPTH) && ctx->Depth.Mask) { if (context_chipset(ctx) >= 0x17) nv17_zclear(ctx, &buffers); else nv10_zclear(ctx, &buffers); /* Emit the zclear state if it's dirty */ _mesa_update_state(ctx); } nouveau_pushbuf_bufctx(push, NULL); nouveau_clear(ctx, buffers); }
static void nv10_clear(struct gl_context *ctx, GLbitfield buffers) { nouveau_validate_framebuffer(ctx); if ((buffers & BUFFER_BIT_DEPTH) && ctx->Depth.Mask) { if (context_chipset(ctx) >= 0x17) nv17_zclear(ctx, &buffers); else nv10_zclear(ctx, &buffers); /* Emit the zclear state if it's dirty */ _mesa_update_state(ctx); } nouveau_clear(ctx, buffers); }