Re: [PATCH i-g-t v1] lib/intel_fbc: Use display version for FBC max plane size
"Govindapillai, Vinod" <[email protected]>
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2026-08-05 at 08:24 +0530, Santhosh Reddy Guddati wrote: > FBC plane size restrictions are a display feature, so use > intel_display_ver() instead of graphics_ver. This fixes incorrect > size limits on platforms where display and graphics versions differ. > > Signed-off-by: Santhosh Reddy Guddati > <[email protected]> > --- > lib/i915/intel_fbc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Vinod Govindapillai <[email protected]> > diff --git a/lib/i915/intel_fbc.c b/lib/i915/intel_fbc.c > index ad78ee2a31..1052dfcae5 100644 > --- a/lib/i915/intel_fbc.c > +++ b/lib/i915/intel_fbc.c > @@ -201,8 +201,7 @@ static void > intel_fbc_max_plane_size(igt_display_t *display, uint32_t *width, ui > { > int fd = display->drm_fd; > const uint32_t dev_id = intel_get_drm_devid(fd); > - const struct intel_device_info *info = > intel_get_device_info(dev_id); > - int ver = info->graphics_ver; > + int ver = intel_display_ver(dev_id); > > if (ver >= 30) { > *width = 6144;