Re: [PATCH v2] drm/vc4: Advertise supported modifiers for planes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8 August 2017 at 21:36, Eric Anholt <eric@xxxxxxxxxx> wrote:
> Daniel Stone <daniels@xxxxxxxxxxxxx> writes:
>> +     case DRM_FORMAT_YUV422:
>> +     case DRM_FORMAT_YVU422:
>> +     case DRM_FORMAT_YUV420:
>> +     case DRM_FORMAT_YVU420:
>> +     case DRM_FORMAT_NV12:
>> +     case DRM_FORMAT_NV16:
>> +             return (modifier == DRM_FORMAT_MOD_LINEAR);
>> +     }
>> +}
>
> drivers/gpu/drm/vc4/vc4_plane.c: In function ‘vc4_format_mod_supported’:
> drivers/gpu/drm/vc4/vc4_plane.c:889:1: warning: control reaches end of non-void function [-Wreturn-type]
>  }
>
> Can we just replace the ARGB cases with a default case?  Or maybe just
> drm_format_info(format)->num_planes > 1?

I'd sent the wrong version whilst juggling trees; see the follow-up
sent very shortly after. Really don't mind which; was trying to search
for something which seemed most foolproof. num_planes > 1 is probably
the best proxy, so I'll do that. The patch to check modifier
correctness also needs a rebase after the bo-unref changes, so I'll
resend bothj.

Cheers,
Daniel
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux