Lines Matching defs:states
59 struct pipe_viewport_state states[PIPE_MAX_VIEWPORTS];
75 states[i].scale[0] = half_width;
76 states[i].scale[1] = -half_height;
77 states[i].scale[2] = depth;
79 states[i].translate[0] = half_width + x;
80 states[i].translate[1] = half_height + y;
81 states[i].translate[2] = z;
84 memset(states + NumViewports, 0,
88 states);
112 struct pipe_scissor_state states[PIPE_MAX_VIEWPORTS];
121 states[i].minx = pRect->left < 0 ? 0 : pRect->left;
122 states[i].miny = pRect->top < 0 ? 0 : pRect->top;
123 states[i].maxx = pRect->right < 0 ? 0 : pRect->right;
124 states[i].maxy = pRect->bottom < 0 ? 0 : pRect->bottom;
127 memset(states + NumScissorRects, 0,
131 states);