On Tue, Jun 19, 2018 at 10:05 PM, Keith Packard <kei...@keithp.com> wrote:

> Jason Ekstrand <ja...@jlekstrand.net> writes:
>
> > Thoughts?
>
> You've looked at the code more closely than I have; please feel free to
> leave it if you think it would seem worse as separate functions.
>

I just sent a v2 which allocates a temporary array, calls properties2, and
then copies it back over.  It doesn't duplicate the iteration code and
instead just leverages propertie2.  On the down side, it's a bit more
allocation and data motion but, compared to the ioctl that properties2 is
doing, it shouldn't be noticeable.  Let me know what you think of that
version.

--Jason
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to