Lines Matching refs:vc4
29 struct vc4_context *vc4 = vc4_context(pctx); in vc4_emit_state() local
30 struct vc4_job *job = vc4->job; in vc4_emit_state()
32 if (vc4->dirty & (VC4_DIRTY_SCISSOR | VC4_DIRTY_VIEWPORT | in vc4_emit_state()
34 float *vpscale = vc4->viewport.scale; in vc4_emit_state()
35 float *vptranslate = vc4->viewport.translate; in vc4_emit_state()
50 if (!vc4->rasterizer->base.scissor) { in vc4_emit_state()
56 minx = MAX2(vp_minx, vc4->scissor.minx); in vc4_emit_state()
57 miny = MAX2(vp_miny, vc4->scissor.miny); in vc4_emit_state()
58 maxx = MIN2(vp_maxx, vc4->scissor.maxx); in vc4_emit_state()
59 maxy = MIN2(vp_maxy, vc4->scissor.maxy); in vc4_emit_state()
75 if (vc4->dirty & (VC4_DIRTY_RASTERIZER | in vc4_emit_state()
91 if (job->msaa || vc4->prog.fs->disable_early_z) in vc4_emit_state()
106 (vc4->rasterizer->config_bits[0] | in vc4_emit_state()
107 vc4->zsa->config_bits[0]) & rasosm_mask_out); in vc4_emit_state()
109 vc4->rasterizer->config_bits[1] | in vc4_emit_state()
110 vc4->zsa->config_bits[1]); in vc4_emit_state()
112 (vc4->rasterizer->config_bits[2] | in vc4_emit_state()
113 vc4->zsa->config_bits[2]) & ez_enable_mask_out); in vc4_emit_state()
117 if (vc4->dirty & VC4_DIRTY_RASTERIZER) { in vc4_emit_state()
118 cl_emit_prepacked(&job->bcl, &vc4->rasterizer->packed); in vc4_emit_state()
121 if (vc4->dirty & VC4_DIRTY_VIEWPORT) { in vc4_emit_state()
124 vc4->viewport.scale[0] * 16.0f; in vc4_emit_state()
126 vc4->viewport.scale[1] * 16.0f; in vc4_emit_state()
131 vc4->viewport.translate[2]; in vc4_emit_state()
133 vc4->viewport.scale[2]; in vc4_emit_state()
138 vc4->viewport.translate[0]; in vc4_emit_state()
140 vc4->viewport.translate[1]; in vc4_emit_state()
144 if (vc4->dirty & VC4_DIRTY_FLAT_SHADE_FLAGS) { in vc4_emit_state()
146 if (vc4->rasterizer->base.flatshade) in vc4_emit_state()
148 vc4->prog.fs->color_inputs; in vc4_emit_state()