Fallback to pixman when trapezoid mask is big.
authorJunyan He <junyan.he@linux.intel.com>
Mon, 6 Aug 2012 21:01:59 +0000 (05:01 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Dec 2013 19:23:53 +0000 (11:23 -0800)
commitc3096c5a568c9c7b5f8a68ca882d866b8fb8e3ad
tree593ca8820bbaa625b8ae7e8c03b4b0d6df2b19ec
parentf62f4d53ef91ba05cc9456b1468cd1b24252454f
Fallback to pixman when trapezoid mask is big.

 The trapezoid generating speed of the shader is relatively
 slower when the trapezoid area is big. We fallback when
 the trapezoid's width and height is bigger enough.
 The big traps number will also slow down the render because
 of the VBO size. We fallback if ntrap > 256

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