From: Roland Scheidegger Date: Thu, 23 Apr 2009 21:41:41 +0000 (+0200) Subject: i965: fix point size issue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff71587b27beaf288d535e14c75e58425d7efc7a;p=mesa.git 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. --- diff --git a/src/mesa/drivers/dri/i965/brw_sf_state.c b/src/mesa/drivers/dri/i965/brw_sf_state.c index fc4eddda0a5..68fa9820b6f 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_state.c +++ b/src/mesa/drivers/dri/i965/brw_sf_state.c @@ -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;