]> git.baikalelectronics.ru Git - kernel.git/commit
drm/udl: fix stride issues scanning out stride != width*bpp
authorDave Airlie <airlied@redhat.com>
Thu, 1 Nov 2012 03:47:09 +0000 (13:47 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Nov 2012 00:31:37 +0000 (10:31 +1000)
commit4b4429a0e3ec2c0482f39e6d82e632b35ee209ac
treec489f8c8d33de95b5a0de5741e578b5d8fde0e5a
parent41fc7532c9d9faa2d167efa61da21f8398ab3594
drm/udl: fix stride issues scanning out stride != width*bpp

When buffer sharing with the i915 and using a 1680x1050 monitor,
the i915 gives is a 6912 buffer for the 6720 width, the code doesn't
render this properly as it uses one value to set the base address for
reading from the vmap and for where to start on the device.

This fixes it by calculating the values correctly for the device and
for the pixmap. No idea how I haven't seen this before now.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_drv.h
drivers/gpu/drm/udl/udl_fb.c
drivers/gpu/drm/udl/udl_transfer.c