Skip to content

Commit ccfb0ca

Browse files
6by9popcornmix
authored andcommitted
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>
1 parent 8792e6a commit ccfb0ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/vc4/vc4_firmware_kms.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,10 @@ static void vc4_plane_atomic_update(struct drm_plane *plane,
458458
switch (fb->modifier) {
459459
case DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED:
460460
switch (mb->plane.vc_image_type) {
461-
case VC_IMAGE_RGBX32:
461+
case VC_IMAGE_XRGB8888:
462462
mb->plane.vc_image_type = VC_IMAGE_TF_RGBX32;
463463
break;
464-
case VC_IMAGE_RGBA32:
464+
case VC_IMAGE_ARGB8888:
465465
mb->plane.vc_image_type = VC_IMAGE_TF_RGBA32;
466466
break;
467467
case VC_IMAGE_RGB565:

0 commit comments

Comments
 (0)