i965: Use ctx->Const.MaxLineWidth when clamping ctx->Line.Width.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Nov 2014 00:26:48 +0000 (16:26 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 9 Nov 2014 06:22:53 +0000 (22:22 -0800)
commit61838fd9ad9e5e878cbc39d3f37b2188b9ec8d11
treee1c892a9651c4f43394cf7990195968833458ea8
parent87927ed1f0bd92d9b0d5fae213e5c9056304f007
i965: Use ctx->Const.MaxLineWidth when clamping ctx->Line.Width.

Rather than hardcoding platform values in every code path, just use the
maximum value we set.

Currently, ctx->Const.LineWidth == 5, which is smaller than the hardware
limit.  But applications shouldn't be using a value larger than we
support anyway.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_sf_state.c
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c
src/mesa/drivers/dri/i965/gen8_sf_state.c