summaryrefslogtreecommitdiff
path: root/glamor/glamor_getspans.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2011-06-10 18:32:15 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2011-09-26 16:46:35 +0800
commitba6dd8aa492d9d555d8b175bcf350e5db1821597 (patch)
treed1faae2b399342cfee8b41eed9de76b44e58cc73 /glamor/glamor_getspans.c
parenta0a52be73994c93521e94f1f10152ce851485ea3 (diff)
glamor: Simplify fill acceleration for spans/polyfillrect by only clipping once.
This commit was borrowed from uxa driver contributed by Eric. commit number is e0066e77e026b0dd0daa0c3765473c7d63aa6753. commit log paste as below: We were clipping each span against the bounds of the clip, throwing out the span early if it was all clipped, and then walked the clip box clipping against each of the cliprects. We would expect spans to typically be clipped against one box, and not thrown out, so we were not saving any work there. For multiple cliprects, we were adding work. Only for many spans clipped entirely out of a complicated clip region would it have saved work, and it clearly didn't save bugs as evidenced by the many fix attempts here. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'glamor/glamor_getspans.c')
0 files changed, 0 insertions, 0 deletions