]> 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)
commit09a11182c57f43ff2b8c2fd9d9e9c9b109d95888
treec489f8c8d33de95b5a0de5741e578b5d8fde0e5a
parentd64da8a83b3f8036e0a37c18bfed3bf91b6a4d00
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