Mesa (7.10): i965: Increase Sandybridge point size clamp.

Ian Romanick idr at kemper.freedesktop.org
Tue Mar 1 01:37:16 UTC 2011


Module: Mesa
Branch: 7.10
Commit: e0f6193024e4539ff24417b7250a5e87c6c369ca
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0f6193024e4539ff24417b7250a5e87c6c369ca

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sat Feb 19 17:22:47 2011 -0800

i965: Increase Sandybridge point size clamp.

255.875 matches the hardware documentation.  Presumably this was a typo.

Found by inspection.  Not known to fix any issues.

Reviewed-by: Eric Anholt <eric at anholt.net>
(cherry picked from commit 2bfc23fb86964e4153f57f2a56248760f6066033)

---

 src/mesa/drivers/dri/i965/gen6_sf_state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/gen6_sf_state.c b/src/mesa/drivers/dri/i965/gen6_sf_state.c
index edc6f24..4feb490 100644
--- a/src/mesa/drivers/dri/i965/gen6_sf_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_sf_state.c
@@ -209,7 +209,7 @@ upload_sf_state(struct brw_context *brw)
 	 ctx->Point._Attenuated))
       dw4 |= GEN6_SF_USE_STATE_POINT_WIDTH;
 
-   dw4 |= U_FIXED(CLAMP(ctx->Point.Size, 0.125, 225.875), 3) <<
+   dw4 |= U_FIXED(CLAMP(ctx->Point.Size, 0.125, 255.875), 3) <<
       GEN6_SF_POINT_WIDTH_SHIFT;
    if (ctx->Point.SpriteOrigin == GL_LOWER_LEFT)
       dw1 |= GEN6_SF_POINT_SPRITE_LOWERLEFT;




More information about the mesa-commit mailing list