On Fri, 4 May 2012 17:06:38 -0700, Kenneth Graunke <kenn...@whitecape.org> wrote: > - vp->xmin = -1.0; > - vp->xmax = 1.0; > - vp->ymin = -1.0; > - vp->ymax = 1.0; > + /* According to the Sandybridge PRM, Volume 2, Part 1, Section 6.3.8 > + * "Vertex X,Y Clamping and Quantization", the screen-aligned 2D > + * bounding-box of an object must not exceed 16K pixels in either X or Y. > + */ > + const float maximum_post_clamp_delta = 16384; > + float gbx = maximum_post_clamp_delta / (float) ctx->Viewport.Width; > + float gby = maximum_post_clamp_delta / (float) ctx->Viewport.Height; > + > + vp->xmin = -gbx; > + vp->xmax = gbx; > + vp->ymin = -gby; > + vp->ymax = gby;
Aren't you letting primitives extend from -16384 to 16384 this way?
pgpJ6Zy743Q2N.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev