diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-02-03 11:44:51 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2012-02-08 13:37:12 +0800 |
commit | 492578de39def2ee2397e7f8938c12e7b85ea138 (patch) | |
tree | 41a75e95a2fc5634702f7b6051f1c655ed2c7f74 /src/glamor_fill.c | |
parent | b982edcfd1ab6b254539fabae7702c54b47249eb (diff) |
glamor_fill/tile: Fixed a tileX/tileY calculation bug.
The previous's calculation is incorrect, now fix it and then
we don't need to fallback at glamor_tile.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Peng Li <peng.li@intel.com>
Diffstat (limited to 'src/glamor_fill.c')
-rw-r--r-- | src/glamor_fill.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glamor_fill.c b/src/glamor_fill.c index df97ad0..b462f59 100644 --- a/src/glamor_fill.c +++ b/src/glamor_fill.c @@ -31,7 +31,6 @@ * * GC fill implementation, based loosely on fb_fill.c */ - Bool glamor_fill(DrawablePtr drawable, GCPtr gc, int x, int y, int width, int height, Bool fallback) @@ -74,8 +73,8 @@ glamor_fill(DrawablePtr drawable, height, gc->alu, gc->planemask, - drawable->x + x + off_x - gc->patOrg.x, - drawable->y + y + off_y - gc->patOrg.y)) + x - drawable->x - gc->patOrg.x, + y - drawable->y - gc->patOrg.y)) goto fail; break; } |