openwrt/target/linux/bcm27xx/patches-4.19/950-0569-drm-vc4-Fix-T-format-modifiers-in-FKMS.patch
Adrian Schmutzler 7d7aa2fd92 brcm2708: rename target to bcm27xx
This change makes the names of Broadcom targets consistent by using
the common notation based on SoC/CPU ID (which is used internally
anyway), bcmXXXX instead of brcmXXXX.
This is even used for target TITLE in make menuconfig already,
only the short target name used brcm so far.

Despite, since subtargets range from bcm2708 to bcm2711, it seems
appropriate to use bcm27xx instead of bcm2708 (again, as already done
for BOARDNAME).

This also renames the packages brcm2708-userland and brcm2708-gpu-fw.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
2020-02-14 14:10:51 +01:00

29 lines
990 B
Diff

From ba21a5129def696c154c84df087f07bc748abe7d Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.org>
Date: Fri, 7 Jun 2019 11:31:21 +0100
Subject: [PATCH] drm/vc4: Fix T-format modifiers in FKMS.
The wrong vc_image formats were being checked for in the switch
statement. Correct these.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
---
drivers/gpu/drm/vc4/vc4_firmware_kms.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c
+++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c
@@ -458,10 +458,10 @@ static void vc4_plane_atomic_update(stru
switch (fb->modifier) {
case DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED:
switch (mb->plane.vc_image_type) {
- case VC_IMAGE_RGBX32:
+ case VC_IMAGE_XRGB8888:
mb->plane.vc_image_type = VC_IMAGE_TF_RGBX32;
break;
- case VC_IMAGE_RGBA32:
+ case VC_IMAGE_ARGB8888:
mb->plane.vc_image_type = VC_IMAGE_TF_RGBA32;
break;
case VC_IMAGE_RGB565: