OpenCloudOS-Kernel/drivers/gpu/drm/vc4
Boris Brezillon 658d8cbd07 drm/vc4: Fix the "no scaling" case on multi-planar YUV formats
When there's no scaling requested ->is_unity should be true no matter
the format.

Also, when no scaling is requested and we have a multi-planar YUV
format, we should leave ->y_scaling[0] to VC4_SCALING_NONE and only
set ->x_scaling[0] to VC4_SCALING_PPF.

Doing this fixes an hardly visible artifact (seen when using modetest
and a rather big overlay plane in YUV420).

Fixes: fc04023faf ("drm/vc4: Add support for YUV planes.")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180725122907.13702-1-boris.brezillon@bootlin.com
Signed-off-by: Sean Paul <seanpaul@chromium.org>
2018-09-10 16:01:22 -04:00
..
Kconfig drm/vc4: add HDMI CEC support 2017-07-26 12:15:12 -07:00
Makefile drm/vc4: Add support for the transposer block 2018-07-07 07:54:46 +02:00
vc4_bo.c gpu: drm: vc4: Adding new typedef vm_fault_t 2018-06-21 13:01:50 -07:00
vc4_crtc.c drm/vc4: Add support for the transposer block 2018-07-07 07:54:46 +02:00
vc4_debugfs.c drm/vc4: Add support for the transposer block 2018-07-07 07:54:46 +02:00
vc4_dpi.c drm/vc4: Fix oops dereferencing DPI's connector since panel_bridge. 2018-05-07 10:19:11 -04:00
vc4_drv.c drm/vc4: Replace drm_dev_unref with drm_dev_put 2018-07-17 11:24:33 -07:00
vc4_drv.h drm/vc4: Add support for the transposer block 2018-07-07 07:54:46 +02:00
vc4_dsi.c drm/vc4: Support the case where the DSI device is disabled 2018-07-10 17:59:05 +02:00
vc4_fence.c drm/vc4: Remove unecessary dma_fence_ops 2018-07-03 13:14:10 +02:00
vc4_gem.c drm/vc4: Add a pad field to align drm_vc4_submit_cl to 64 bits. 2018-05-03 15:20:09 -07:00
vc4_hdmi.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
vc4_hvs.c drm/vc4: Add CTM registers to debugfs 2018-04-23 11:50:22 -07:00
vc4_irq.c drm/vc4: Expose performance counters to userspace 2018-02-10 22:23:26 +00:00
vc4_kms.c drm/vc4: Call drm_atomic_helper_fake_vblank() in the commit path 2018-07-07 07:54:15 +02:00
vc4_packet.h drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_perfmon.c drm/vc4: Expose performance counters to userspace 2018-02-10 22:23:26 +00:00
vc4_plane.c drm/vc4: Fix the "no scaling" case on multi-planar YUV formats 2018-09-10 16:01:22 -04:00
vc4_qpu_defines.h drm/vc4: Fix definition of QPU_R_MS_REV_FLAGS 2016-07-15 15:19:52 -07:00
vc4_regs.h drm/vc4: Add support for SAND modifier. 2018-05-31 11:42:44 -07:00
vc4_render_cl.c drm/vc4: Add exec flags to allow forcing a specific X/Y tile walk order. 2017-08-08 13:26:44 -07:00
vc4_trace.h drm/vc4: Use correct path to trace include 2017-09-05 11:11:20 +02:00
vc4_trace_points.c drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_txp.c drm/vc4: Add support for the transposer block 2018-07-07 07:54:46 +02:00
vc4_v3d.c drm/vc4: make function vc4_allocate_bin_bo static 2018-04-30 10:59:00 -07:00
vc4_validate.c drm/vc4_validate: Remove VLA usage 2018-03-16 15:51:52 -07:00
vc4_validate_shaders.c drm/vc4: Fix memory leak during BO teardown 2018-04-09 12:42:08 -07:00
vc4_vec.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00