mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
8c405cdccc
The patches were generated from the RPi repo with the following command: git format-patch v6.6.34..rpi-6.1.y Some patches needed rebasing and, as usual, the applied and reverted, wireless drivers, Github workflows, READMEs and defconfigs patches were removed. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From 57ec5c418588c6dd23a4ce7d0f0cb76667ec155f Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Mon, 8 Nov 2021 18:25:49 +0000
|
|
Subject: [PATCH 0015/1085] drm/vc4: Only add gamma properties once.
|
|
|
|
Two calls were made to drm_crtc_enable_color_mgmt to add gamma
|
|
and CTM, however they were both set to add the gamma properties,
|
|
so they ended up added twice.
|
|
|
|
Fixes: 766cc6b1f7fc "drm/vc4: Add CTM support"
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_crtc.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_crtc.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_crtc.c
|
|
@@ -1371,7 +1371,7 @@ int __vc4_crtc_init(struct drm_device *d
|
|
/* We support CTM, but only for one CRTC at a time. It's therefore
|
|
* implemented as private driver state in vc4_kms, not here.
|
|
*/
|
|
- drm_crtc_enable_color_mgmt(crtc, 0, true, crtc->gamma_size);
|
|
+ drm_crtc_enable_color_mgmt(crtc, 0, true, 0);
|
|
|
|
/* Initialize the VC4 gamma LUTs */
|
|
for (i = 0; i < crtc->gamma_size; i++) {
|