Re: [Mesa-dev] [PATCH v3] gbm: Export a per plane getter for stride

2017-02-06 Thread Jason Ekstrand
On Sun, Feb 5, 2017 at 8:16 PM, Ben Widawsky wrote: > v2: Preserve legacy behavior when plane is 0 (Jason Ekstrand) > EINVAL when input plane is greater than total planes (Jason Ekstrand) > Don't leak the image after fromPlanar (Daniel) > Move bo->image check below plane count

[Mesa-dev] [PATCH v3] gbm: Export a per plane getter for stride

2017-02-05 Thread Ben Widawsky
v2: Preserve legacy behavior when plane is 0 (Jason Ekstrand) EINVAL when input plane is greater than total planes (Jason Ekstrand) Don't leak the image after fromPlanar (Daniel) Move bo->image check below plane count preventing bad index succeeding (Daniel) v3: Fix DRIimage leak (using Jason's