r300: Fix point minmax size
authorNicolai Haehnle <nhaehnle@gmail.com>
Sun, 27 Jul 2008 19:18:29 +0000 (21:18 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sun, 27 Jul 2008 19:18:29 +0000 (21:18 +0200)
There are 6 subpixel units per pixel, not 16.

src/mesa/drivers/dri/r300/r300_state.c

index ec17974d78c5a79e7df1d3d273427066d0cffeb4..cce07d338bb9c4e609762f7887a8ca005322393b 100644 (file)
@@ -881,12 +881,12 @@ static void r300PointParameter(GLcontext * ctx, GLenum pname, const GLfloat * pa
        case GL_POINT_SIZE_MIN:
                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 * 16.0);
+               r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MinSize * 6.0);
                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 * 16.0)
+               r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MaxSize * 6.0)
                        << R300_GA_POINT_MINMAX_MAX_SHIFT;
                break;
        case GL_POINT_DISTANCE_ATTENUATION: