Lines Matching refs:viewport
74 struct pipe_viewport_state viewport;
229 /* viewport, depth isn't really needed */
247 p->viewport.scale[0] = half_width;
248 p->viewport.scale[1] = half_height * scale;
249 p->viewport.scale[2] = half_depth;
250 p->viewport.scale[3] = 1.0f;
252 p->viewport.translate[0] = half_width + x;
253 p->viewport.translate[1] = (half_height + y) * scale + bias;
254 p->viewport.translate[2] = half_depth + z;
255 p->viewport.translate[3] = 0.0f;
319 cso_set_viewport(p->cso, &p->viewport);