On Tue, Apr 04, 2017 at 05:10:36PM -0700, Kenneth Graunke wrote:

Even a small justification?

I would have kept the bare ioctl wrapper

        static int get_reset_stats(int fd, struct *stats)
        {
                int err;

                err = 0;
                if (drmIoctl(fd, DRM_IOCTL_I915_GET_RESET_STATS, stats))
                        err = -errno;

                return err; /* reporting the actual error may be
                               overkill, just habit! */
        }


Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to