Lines Matching refs:viewport
71 struct pipe_viewport_state viewport;
170 /* viewport, depth isn't really needed */
188 p->viewport.scale[0] = half_width;
189 p->viewport.scale[1] = half_height * scale;
190 p->viewport.scale[2] = half_depth;
191 p->viewport.scale[3] = 1.0f;
193 p->viewport.translate[0] = half_width + x;
194 p->viewport.translate[1] = (half_height + y) * scale + bias;
195 p->viewport.translate[2] = half_depth + z;
196 p->viewport.translate[3] = 0.0f;
255 cso_set_viewport(p->cso, &p->viewport);