Re: [PATCH v2] drm/mediatek: Add valid modifier check

2023-07-31 Thread Chen-Yu Tsai
On Thu, Jul 27, 2023 at 11:04 AM CK Hu (胡俊光) wrote: > > Hi, Justin: > > On Wed, 2023-07-26 at 15:52 -0400, Justin Green wrote: > > > > External email : Please do not click links or open attachments until > > you have verified the sender or the content. > > Add a check to mtk_drm_mode_fb_create()

Re: [PATCH v2] drm/mediatek: Add valid modifier check

2023-07-26 Thread 胡俊光

[PATCH v2] drm/mediatek: Add valid modifier check

2023-07-26 Thread Justin Green
Add a check to mtk_drm_mode_fb_create() that rejects any modifier that is not the AFBC mode supported by MT8195's display overlays. Tested by booting ChromeOS and verifying the UI works, and by running the ChromeOS kms_addfb_basic binary, which has a test called "addfb25-bad-modifier" that attempt