Mesa (master): r300: recalculate point size, if point min/max size changes

Maciej Cencora osiris at kemper.freedesktop.org
Sun Mar 7 03:30:42 PST 2010


Module: Mesa
Branch: master
Commit: 89ea4022371998467faf26c5e27ab987469b91ef
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=89ea4022371998467faf26c5e27ab987469b91ef

Author: Maciej Cencora <m.cencora at gmail.com>
Date:   Sat Mar  6 13:39:13 2010 +0100

r300: recalculate point size, if point min/max size changes

Fixes two wine d3d9 unit tests

---

 src/mesa/drivers/dri/r300/r300_state.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index 6c2c367..5a056f0 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -794,12 +794,14 @@ static void r300PointParameter(GLcontext * ctx, GLenum pname, const GLfloat * pa
 		R300_STATECHANGE(r300, ga_point_minmax);
 		r300->hw.ga_point_minmax.cmd[1] &= ~R300_GA_POINT_MINMAX_MIN_MASK;
 		r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MinSize * 6.0);
+		r300PointSize(ctx, ctx->Point.Size);
 		break;
 	case GL_POINT_SIZE_MAX:
 		R300_STATECHANGE(r300, ga_point_minmax);
 		r300->hw.ga_point_minmax.cmd[1] &= ~R300_GA_POINT_MINMAX_MAX_MASK;
 		r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MaxSize * 6.0)
 			<< R300_GA_POINT_MINMAX_MAX_SHIFT;
+		r300PointSize(ctx, ctx->Point.Size);
 		break;
 	case GL_POINT_DISTANCE_ATTENUATION:
 		break;



More information about the mesa-commit mailing list