Re: [Mesa-dev] [PATCH 5/5] gbm: Export a per plane getter for offset

2017-03-07 Thread Jason Ekstrand
On Mon, Mar 6, 2017 at 6:37 PM, Ben Widawsky wrote: > Unlike stride, there was no previous offset getter, so it can be right > on the first try. > > v2: Return EINVAL when plane is greater than total planes to make it > match the similar APIs. > Avoid leak after fromPlanar

[Mesa-dev] [PATCH 5/5] gbm: Export a per plane getter for offset

2017-03-06 Thread Ben Widawsky
Unlike stride, there was no previous offset getter, so it can be right on the first try. v2: Return EINVAL when plane is greater than total planes to make it match the similar APIs. Avoid leak after fromPlanar (Daniel) Make sure when getting offsets we consider dumb images (Daniel) v3: Use