i965/gen8: Fix antialiased line rendering with width < 1.5
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 11 Jun 2015 06:49:46 +0000 (08:49 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 11 Jun 2015 11:40:15 +0000 (13:40 +0200)
commit0f1fe649b7fdfb3ab8c7b14e642bc0e3831fc092
tree15fa4c9a883923f5f9a455b24f0bf9c291c747cd
parent5b61cb12366f65a5d7e21b47fa3501a03fd884ee
i965/gen8: Fix antialiased line rendering with width < 1.5

The same fix Marius implemented for gen6 (commit a9b04d8a) and
gen7 (commit 24ecf37a).

Also, we need the same code to handle special cases of line width
in gen6, gen7 and now gen8, so put that in the helper function
we use to compute the line width.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_util.h
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