OSDN Git Service

i965: fix polygon stipple when rendering to FBO
authorRobert Ellison <papillo@vmware.com>
Thu, 12 Mar 2009 17:46:31 +0000 (11:46 -0600)
committerRobert Ellison <papillo@vmware.com>
Thu, 12 Mar 2009 17:58:43 +0000 (11:58 -0600)
commit29309b45b011b4c44721b8f7346272fb22a4d4c2
treeaecdc5ec76d07c182b6ce7e7baf73deed80e06a3
parenta9a214cc7fb59713f5fcbd207caf45becf1ec2b8
i965: fix polygon stipple when rendering to FBO

The polygon stipple pattern, like the viewport and the
polygon face orientation, must be inverted on the i965
when rendering to a FBO (which itself has an inverted pixel
coordinate system compared to raw Mesa).

In addition, the polygon stipple offset, which orients
the stipple to the window system, disappears when rendering
to an FBO (because the window system offset doesn't apply,
and there's no associated FBO offset).

With these fixes, the conform triangle and polygon stipple
tests pass when rendering to texture.
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/main/mtypes.h