Lines Matching refs:vp
257 struct pipe_viewport_state vp;
258 vp.scale[0] = 0.5f * width;
259 vp.scale[1] = height * (invert ? -0.5f : 0.5f);
260 vp.scale[2] = 1.0f;
261 vp.scale[3] = 1.0f;
262 vp.translate[0] = 0.5f * width;
263 vp.translate[1] = 0.5f * height;
264 vp.translate[2] = 0.0f;
265 vp.translate[3] = 0.0f;
266 cso_set_viewport(cso, &vp);