gallium: remove use of origin_lower_left

This was used to indicate OpenGL's lower-left origin for fragment window
coordinates for polygon stipple and gl_FragCoord.

Now:
  - fragment coordinate origin is always upper-left corner
  - GL polygon stipple is inverted and shifted before given to gallium
  - GL fragment programs that use INPUT[WPOS] are modified to use an
    inverted window coord which is placed in a temp register.

Note: the origin_lower_left field still exists in pipe_rasterizer_state.
Remove it when all the drivers, etc. no longer reference it.
This commit is contained in:
Brian Paul
2009-03-20 20:25:34 -06:00
parent 1f45ae0813
commit 401cbd0d23
6 changed files with 207 additions and 53 deletions

View File

@@ -79,6 +79,7 @@ static void update_raster_state( struct st_context *st )
memset(raster, 0, sizeof(*raster));
/* XXX obsolete field, remove someday */
raster->origin_lower_left = 1; /* Always true for OpenGL */
/* _NEW_POLYGON, _NEW_BUFFERS