i965: Advertise larger line widths.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Nov 2014 01:01:53 +0000 (17:01 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 9 Nov 2014 06:22:54 +0000 (22:22 -0800)
commit6dab04d7e3af2e0be8a05ca2df8c5669a5f54937
treeb4c6502033813269015d310fcb27b0ef9034c925
parent61838fd9ad9e5e878cbc39d3f37b2188b9ec8d11
i965: Advertise larger line widths.

We've artificially been limiting this to 5 for no particular reason.

On Gen4-5, the limit is [0, 7.5] with a granularity of 0.5 (U3.1).
On Gen6+, the limit is [0, 7.9921875].  Since it's a U3.7, the
granularity should be 0.125 (1/8).

This patch conservatively advertises one granularity smaller than the
hardware's maximum value, just in case there's a problem using the
largest possible value.  On Gen4-5, this is 7.5 - 0.5 = 7.0.  On Gen6+,
this is 8.0 - 0.125 = 7.875.

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