Re: [PATCH v3 libdrm 2/2] Add drmModeGetFB2

2020-01-31 Thread Daniel Stone
Hi Juston, On Thu, 23 Jan 2020 at 00:37, Juston Li wrote: > +drm_public void drmModeFreeFB2(drmModeFB2Ptr ptr) > +{ > + if (!ptr) > + return; > + > + /* we might add more frees later. */ > + drmFree(ptr); I do not recognise this comment, and since free(NULL) is de

[PATCH v3 libdrm 2/2] Add drmModeGetFB2

2020-01-22 Thread Juston Li
From: Daniel Stone Add a wrapper around the getfb2 ioctl, which returns extended framebuffer information mirroring addfb2, including multiple planes and modifiers. Changes since v2: - getfb2 ioctl has been merged upstream - sync include/drm/drm.h in a seperate patch Changes since v1: - funct