]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dsc: Add native 420 and 422 support to compute_rc_params
authorDavid Francis <David.Francis@amd.com>
Thu, 21 Feb 2019 20:20:00 +0000 (15:20 -0500)
committerHarry Wentland <harry.wentland@amd.com>
Tue, 5 Mar 2019 18:24:33 +0000 (13:24 -0500)
commit9613c04af628c8d5176ab432571a6403b44cb93f
tree6349e371bfe6dfc74ceb8330261efe1ebb41a0d8
parentd0bea706f25794eaa9c6b8565c716fb1fda01774
drm/dsc: Add native 420 and 422 support to compute_rc_params

Native 420 and 422 transfer modes are new in DSC1.2

In these modes, each two pixels of a slice are treated as one
pixel, so the slice width is half as large (round down) for
the purposes of calucating the groups per line and chunk size
in bytes

In native 422 mode, each pixel has four components, so the
mux component of a group is larger by one additional mux word
and one additional component

Now that there is native 422 support, the configuration option
previously called enable422 is renamed to simple_422 to avoid
confusion

Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: David Francis <David.Francis@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190221202001.28430-3-David.Francis@amd.com
drivers/gpu/drm/drm_dsc.c
drivers/gpu/drm/i915/intel_vdsc.c
include/drm/drm_dsc.h