On 16 May 2016 at 19:43, Emil Velikov <emil.l.veli...@gmail.com> wrote: > Hi Stanimir, > > On 15 May 2016 at 12:34, Stanimir Varbanov <stanimir.varba...@linaro.org> > wrote: >> Signed-off-by: Stanimir Varbanov <stanimir.varba...@linaro.org> >> --- >> src/gallium/state_trackers/dri/dri2.c | 75 >> ++++++++++++++++++----------------- >> 1 file changed, 39 insertions(+), 36 deletions(-) >> >> diff --git a/src/gallium/state_trackers/dri/dri2.c >> b/src/gallium/state_trackers/dri/dri2.c >> index 8ace842b74b8..78b1b86515e0 100644 >> --- a/src/gallium/state_trackers/dri/dri2.c >> +++ b/src/gallium/state_trackers/dri/dri2.c >> @@ -832,21 +832,43 @@ dri2_create_image_from_name(__DRIscreen *_screen, >> >> static __DRIimage * >> dri2_create_image_from_fd(__DRIscreen *_screen, >> - int width, int height, int format, >> - int fd, int stride, void *loaderPrivate) >> + int width, int height, int fourcc, >> + int *fds, int num_fds, int *strides, >> + int *offsets, unsigned *error, > > This patch folds the duplicated checks prior to calling > dri2_create_image_from_fd() within the function although it adds a > set-but-unused variable error. I'd either add a comment in the > summary about it, or just introduce it where it's needed. > Actually I misread things and "error" is unused only in one of the two cases. Still adding a trivial note would be nice imho.
-Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev