i965: fix point size issue

need to clamp point size to user set min/max values, even for constant
point size. Fixes glean pointAtten test.
This commit is contained in:
Roland Scheidegger 2009-04-23 23:41:41 +02:00
parent 1d00399593
commit ff71587b27

View file

@ -147,7 +147,7 @@ sf_unit_populate_key(struct brw_context *brw, struct brw_sf_unit_key *key)
key->line_smooth = ctx->Line.SmoothFlag;
key->point_sprite = ctx->Point.PointSprite;
key->point_size = ctx->Point.Size;
key->point_size = CLAMP(ctx->Point.Size, ctx->Point.MinSize, ctx->Point.MaxSize);
key->point_attenuated = ctx->Point._Attenuated;
key->render_to_fbo = brw->intel.ctx.DrawBuffer->Name != 0;