On Wed, 25 Mar 2020, Daniel Vetter <daniel@xxxxxxxx> wrote: > Hm I guess the foo_to_i915 idea doesn't scale, we'd need C++ and add > ->to_i915 to all of them somehow (but not even sure C++ is that powerful > with it's abstraction, definitely last time around I looked at it and that > was 20 years ago :-) This was pretty much my conclusion as well, and decided not to pursue it. I did consider documenting the easiest/recommended ways to get at i915 from various types. TODO... BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx