Lines Matching defs:viewports
882 const struct pipe_viewport_state *viewports)
889 assert(viewports);
897 * with fractional viewports) - quite obviously for msaa we'd need
902 const float half_height = fabsf(viewports[0].scale[1]);
903 const float x0 = viewports[0].translate[0] - viewports[0].scale[0];
904 const float y0 = viewports[0].translate[1] - half_height;
907 setup->vpwh.x1 = (int)(viewports[0].scale[0] * 2.0f + x0 - 0.501f);
913 * For use in lp_state_fs.c, propagate the viewport values for all viewports.
917 util_viewport_zmin_zmax(&viewports[i], lp->rasterizer->clip_halfz,
920 if (setup->viewports[i].min_depth != min_depth ||
921 setup->viewports[i].max_depth != max_depth) {
922 setup->viewports[i].min_depth = min_depth;
923 setup->viewports[i].max_depth = max_depth;
1187 lp_scene_alloc(scene, sizeof setup->viewports);
1194 memcpy(stored, setup->viewports, sizeof setup->viewports);
1196 setup->fs.current.jit_context.viewports = stored;