Lines Matching refs:ctx

52 	struct fd_context *ctx = fd_context(pctx);
53 ctx->blend_color = *blend_color;
54 ctx->dirty |= FD_DIRTY_BLEND_COLOR;
61 struct fd_context *ctx = fd_context(pctx);
62 ctx->stencil_ref =* stencil_ref;
63 ctx->dirty |= FD_DIRTY_STENCIL_REF;
70 struct fd_context *ctx = fd_context(pctx);
71 ctx->ucp = *clip;
72 ctx->dirty |= FD_DIRTY_UCP;
78 struct fd_context *ctx = fd_context(pctx);
79 ctx->sample_mask = (uint16_t)sample_mask;
80 ctx->dirty |= FD_DIRTY_SAMPLE_MASK;
95 struct fd_context *ctx = fd_context(pctx);
96 struct fd_constbuf_stateobj *so = &ctx->constbuf[shader];
111 ctx->dirty |= FD_DIRTY_CONSTBUF;
118 struct fd_context *ctx = fd_context(pctx);
121 if (ctx->screen->reorder) {
124 fd_batch_reference(&old_batch, ctx->batch);
129 batch = fd_batch_from_fb(&ctx->screen->batch_cache, ctx, framebuffer);
130 fd_batch_reference(&ctx->batch, NULL);
132 ctx->batch = batch;
133 ctx->dirty = ~0;
146 DBG("%d: cbufs[0]=%p, zsbuf=%p", ctx->batch->needs_flush,
148 fd_batch_flush(ctx->batch, false);
151 cso = &ctx->batch->framebuffer;
155 ctx->dirty |= FD_DIRTY_FRAMEBUFFER;
157 ctx->disabled_scissor.minx = 0;
158 ctx->disabled_scissor.miny = 0;
159 ctx->disabled_scissor.maxx = cso->width;
160 ctx->disabled_scissor.maxy = cso->height;
162 ctx->dirty |= FD_DIRTY_SCISSOR;
169 struct fd_context *ctx = fd_context(pctx);
170 ctx->stipple = *stipple;
171 ctx->dirty |= FD_DIRTY_STIPPLE;
180 struct fd_context *ctx = fd_context(pctx);
182 ctx->scissor = *scissor;
183 ctx->dirty |= FD_DIRTY_SCISSOR;
192 struct fd_context *ctx = fd_context(pctx);
193 ctx->viewport = *viewport;
194 ctx->dirty |= FD_DIRTY_VIEWPORT;
202 struct fd_context *ctx = fd_context(pctx);
203 struct fd_vertexbuf_stateobj *so = &ctx->vtx.vertexbuf;
210 if (ctx->screen->gpu_id < 300) {
217 ctx->dirty |= FD_DIRTY_VTXSTATE;
226 ctx->dirty |= FD_DIRTY_VTXBUF;
233 struct fd_context *ctx = fd_context(pctx);
236 pipe_resource_reference(&ctx->indexbuf.buffer, ib->buffer);
237 ctx->indexbuf.index_size = ib->index_size;
238 ctx->indexbuf.offset = ib->offset;
239 ctx->indexbuf.user_buffer = ib->user_buffer;
241 pipe_resource_reference(&ctx->indexbuf.buffer, NULL);
244 ctx->dirty |= FD_DIRTY_INDEXBUF;
250 struct fd_context *ctx = fd_context(pctx);
252 bool old_is_dual = ctx->blend ?
253 ctx->blend->rt[0].blend_enable && util_blend_state_is_dual(ctx->blend, 0) :
258 ctx->blend = hwcso;
259 ctx->dirty |= FD_DIRTY_BLEND;
261 ctx->dirty |= FD_DIRTY_BLEND_DUAL;
273 struct fd_context *ctx = fd_context(pctx);
274 struct pipe_scissor_state *old_scissor = fd_context_get_scissor(ctx);
276 ctx->rasterizer = hwcso;
277 ctx->dirty |= FD_DIRTY_RASTERIZER;
282 * if it changed to/from &ctx->disable_scissor
284 if (old_scissor != fd_context_get_scissor(ctx))
285 ctx->dirty |= FD_DIRTY_SCISSOR;
297 struct fd_context *ctx = fd_context(pctx);
298 ctx->zsa = hwcso;
299 ctx->dirty |= FD_DIRTY_ZSA;
332 struct fd_context *ctx = fd_context(pctx);
333 ctx->vtx.vtx = hwcso;
334 ctx->dirty |= FD_DIRTY_VTXSTATE;
376 struct fd_context *ctx = fd_context(pctx);
377 struct fd_streamout_stateobj *so = &ctx->streamout;
401 ctx->dirty |= FD_DIRTY_STREAMOUT;