diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2008-03-16 11:39:18 +0100 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2008-03-16 11:45:57 +0100 |
commit | b81d7b3b8d7ca83a9b79d2dbea22f00e78180516 (patch) | |
tree | 5f28921b3427fdba87b4ad8b3b5dfac3f01b61dc /linux-core/via_dmablit.c | |
parent | 7d3d15e67de27f7c47859f36bb55002f0c9d52d6 (diff) |
[via] Allow a little larger stride for SG DMA DownloadFromScreen.
Diffstat (limited to 'linux-core/via_dmablit.c')
-rw-r--r-- | linux-core/via_dmablit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/via_dmablit.c b/linux-core/via_dmablit.c index a6a21782..b5f9f05f 100644 --- a/linux-core/via_dmablit.c +++ b/linux-core/via_dmablit.c @@ -618,7 +618,7 @@ via_build_sg_info(struct drm_device *dev, drm_via_sg_info_t *vsg, drm_via_dmabli * (Not a big limitation anyway.) */ - if ((xfer->mem_stride - xfer->line_length) >= PAGE_SIZE) { + if ((xfer->mem_stride - xfer->line_length) > 2*PAGE_SIZE) { DRM_ERROR("Too large system memory stride. Stride: %d, " "Length: %d\n", xfer->mem_stride, xfer->line_length); return -EINVAL; |