i965: Set point rasterization rule to UPPER_RIGHT on Gen6-7.5.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 27 Apr 2017 05:34:50 +0000 (22:34 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 29 Apr 2017 00:03:33 +0000 (17:03 -0700)
commita1f12574b057a6eb00e17d76039df5ae2cb2a6e7
treee93e05d0e5696c625446b728f5328e886f364fdb
parent4878ab9bd4281c4554254bbb0c62faae453bb863
i965: Set point rasterization rule to UPPER_RIGHT on Gen6-7.5.

Gen4-5 and Gen8+ already set this, but Gen6-7.5 did not.  We ought to
be consistent - the answer depends on the API, not the hardware generation.

The Sandybridge PRM says about RASTRULE_UPPER_RIGHT:

   "To match OpenGL point rasterization rules (round to +infinity, where
    this is the upper right direction wrt OpenGL screen origin of lower
    left).

So this is likely the one we should use.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c