const struct u_rect *scissor =
&setup->scissors[viewport_index];
- plane[4].dcdx = -1;
+ plane[4].dcdx = -1 << 8;
plane[4].dcdy = 0;
- plane[4].c = 1-scissor->x0;
- plane[4].eo = 1;
+ plane[4].c = (1-scissor->x0) << 8;
+ plane[4].eo = 1 << 8;
- plane[5].dcdx = 1;
+ plane[5].dcdx = 1 << 8;
plane[5].dcdy = 0;
- plane[5].c = scissor->x1+1;
+ plane[5].c = (scissor->x1+1) << 8;
plane[5].eo = 0;
plane[6].dcdx = 0;
- plane[6].dcdy = 1;
- plane[6].c = 1-scissor->y0;
- plane[6].eo = 1;
+ plane[6].dcdy = 1 << 8;
+ plane[6].c = (1-scissor->y0) << 8;
+ plane[6].eo = 1 << 8;
plane[7].dcdx = 0;
- plane[7].dcdy = -1;
- plane[7].c = scissor->y1+1;
+ plane[7].dcdy = -1 << 8;
+ plane[7].c = (scissor->y1+1) << 8;
plane[7].eo = 0;
}
{
struct lp_rast_plane *plane = GET_PLANES(point);
- plane[0].dcdx = -1;
+ plane[0].dcdx = -1 << 8;
plane[0].dcdy = 0;
- plane[0].c = 1-bbox.x0;
- plane[0].eo = 1;
+ plane[0].c = (1-bbox.x0) << 8;
+ plane[0].eo = 1 << 8;
- plane[1].dcdx = 1;
+ plane[1].dcdx = 1 << 8;
plane[1].dcdy = 0;
- plane[1].c = bbox.x1+1;
+ plane[1].c = (bbox.x1+1) << 8;
plane[1].eo = 0;
plane[2].dcdx = 0;
- plane[2].dcdy = 1;
- plane[2].c = 1-bbox.y0;
- plane[2].eo = 1;
+ plane[2].dcdy = 1 << 8;
+ plane[2].c = (1-bbox.y0) << 8;
+ plane[2].eo = 1 << 8;
plane[3].dcdx = 0;
- plane[3].dcdy = -1;
- plane[3].c = bbox.y1+1;
+ plane[3].dcdy = -1 << 8;
+ plane[3].c = (bbox.y1+1) << 8;
plane[3].eo = 0;
}
if (nr_planes == 7) {
const struct u_rect *scissor = &setup->scissors[viewport_index];
- plane[3].dcdx = -1;
+ plane[3].dcdx = -1 << 8;
plane[3].dcdy = 0;
- plane[3].c = 1-scissor->x0;
- plane[3].eo = 1;
+ plane[3].c = (1-scissor->x0) << 8;
+ plane[3].eo = 1 << 8;
- plane[4].dcdx = 1;
+ plane[4].dcdx = 1 << 8;
plane[4].dcdy = 0;
- plane[4].c = scissor->x1+1;
+ plane[4].c = (scissor->x1+1) << 8;
plane[4].eo = 0;
plane[5].dcdx = 0;
- plane[5].dcdy = 1;
- plane[5].c = 1-scissor->y0;
- plane[5].eo = 1;
+ plane[5].dcdy = 1 << 8;
+ plane[5].c = (1-scissor->y0) << 8;
+ plane[5].eo = 1 << 8;
plane[6].dcdx = 0;
- plane[6].dcdy = -1;
- plane[6].c = scissor->y1+1;
+ plane[6].dcdy = -1 << 8;
+ plane[6].c = (scissor->y1+1) << 8;
plane[6].eo = 0;
}