glamor_trapezoid: workaround a glsl like problem.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 1 Aug 2012 10:27:29 +0000 (18:27 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Dec 2013 19:23:53 +0000 (11:23 -0800)
commite7af7cb76dade31b9e40cede7ac21d32bc95831c
tree348c1bf45596139029441b54849841b3495ccc3b
parent5512c14e346a988f6eb8cdf9385a868ef705450c
glamor_trapezoid: workaround a glsl like problem.

It seems that the following statement cann't run as expected on SNB.
bool trap_left_vertical = (abs(trap_left_vertical_f - 1.0) <= 0.0001);

Have to rewrite it to another style to let the vertical edge trapezoid
to be rendered correctly.

Reviewed-by: Junyan He <junyan.he@linux.intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
glamor/glamor_trapezoid.c