[Bug 792812] kmsallocator: add alignment when create fb

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jan 23 06:24:12 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=792812

--- Comment #1 from Haihua Hu <jared.hu at nxp.com> ---
in drivers/gpu/drm/drm_framebuffer.c


216         hsub = drm_format_horz_chroma_subsampling(r->pixel_format);         
217         vsub = drm_format_vert_chroma_subsampling(r->pixel_format);         
218         num_planes = drm_format_num_planes(r->pixel_format);                
219                                                                             
220         if (r->width == 0 || r->width % hsub) {                             
221                 DRM_DEBUG_KMS("bad framebuffer width %u\n", r->width);      
222                 return -EINVAL;                                             
223         }                                                                   
224                                                                             
225         if (r->height == 0 || r->height % vsub) {                           
226                 DRM_DEBUG_KMS("bad framebuffer height %u\n", r->height);    
227                 return -EINVAL;                                             
228         }

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list