drm/udl: optimize udl_compress_hline16 (v2)
authorHaixia Shi <hshi@chromium.org>
Fri, 30 Jan 2015 18:51:14 +0000 (10:51 -0800)
committerDave Airlie <airlied@gmail.com>
Sat, 31 Jan 2015 00:08:47 +0000 (10:08 +1000)
commit865844448ce80ccd714793e9ba4140d7ae214229
treef98e9afbd1538de669377cde994de9adc2fd75af
parente410055331c2f474872b364dce3d4042418e892b
drm/udl: optimize udl_compress_hline16 (v2)

The run-length encoding algorithm should compare 16-bit encoded pixel
values instead of comparing raw pixel values. It allows pixels
with similar but different colors to be encoded as repeat pixels, and
thus potentially save USB bandwidth.

Signed-off-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Haixia Shi <hshi@chromium.org>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/udl/udl_transfer.c