linux/drivers/gpu/drm/vc4
Dave Stevenson e105b5e0d7 drm/vc4: Fix YUV plane handling when planes are in different buffers
commit 6b77b16de7 upstream.

YUV images can either be presented as one allocation with offsets
for the different planes, or multiple allocations with 0 offsets.

The driver only ever calls drm_fb_[dma|cma]_get_gem_obj with plane
index 0, therefore any application using the second approach was
incorrectly rendered.

Correctly determine the address for each plane, removing the
assumption that the base address is the same for each.

Fixes: fc04023faf ("drm/vc4: Add support for YUV planes.")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20230127155708.454704-1-maxime@cerno.tech
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-22 12:59:50 +01:00
..
Kconfig drm/vc4: hdmi: Depends on CONFIG_PM 2022-08-18 17:14:58 +02:00
Makefile
vc4_bo.c drm/vc4: bo: Fix unused variable warning 2023-02-01 08:34:17 +01:00
vc4_crtc.c drm/vc4: crtc: Increase setup cost in core clock calculation to handle extreme reduced blanking 2023-02-22 12:59:50 +01:00
vc4_debugfs.c drm/vc4: debugfs: Simplify debugfs registration 2022-07-13 10:46:13 +02:00
vc4_dpi.c drm/vc4: debugfs: Simplify debugfs registration 2022-07-13 10:46:13 +02:00
vc4_drv.c drm/vc4: Fix missing platform_unregister_drivers() call in vc4_drm_register() 2022-11-07 11:29:40 +01:00
vc4_drv.h drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
vc4_dsi.c drm/vc4: debugfs: Simplify debugfs registration 2022-07-13 10:46:13 +02:00
vc4_fence.c
vc4_gem.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_hdmi_phy.c
vc4_hdmi_regs.h
vc4_hdmi.c drm/vc4: hdmi: make CEC adapter name unique 2023-02-09 11:28:02 +01:00
vc4_hdmi.h drm/vc4: hdmi: Fix HSM clock too low on Pi4 2022-11-03 09:26:42 +01:00
vc4_hvs.c drm/vc4: hvs: protect drm_print_regset32() 2022-08-25 09:44:26 +02:00
vc4_irq.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_kms.c drm/vc4: kms: Fix IS_ERR() vs NULL check for vc4_kms 2022-11-10 12:46:02 +01:00
vc4_packet.h
vc4_perfmon.c drm/vc4: perfmon: Add missing mutex_destroy 2022-07-13 10:46:13 +02:00
vc4_plane.c drm/vc4: Fix YUV plane handling when planes are in different buffers 2023-02-22 12:59:50 +01:00
vc4_qpu_defines.h
vc4_regs.h
vc4_render_cl.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_trace_points.c
vc4_trace.h
vc4_txp.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_v3d.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_validate_shaders.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
vc4_validate.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
vc4_vec.c drm/vc4: vec: Fix timings for VEC modes 2022-09-07 10:28:48 +02:00