[Mesa-dev] [PATCH] anv, radv: Add support for VK_KHR_get_display_properties2
Jason Ekstrand
jason at jlekstrand.net
Wed Jun 20 00:39:28 UTC 2018
On Tue, Jun 19, 2018 at 5:01 PM, Keith Packard <keithp at keithp.com> wrote:
> Jason Ekstrand <jason at jlekstrand.net> writes:
>
> I see two styles here -- get_physical_device_display_properties* both
> use a helper function that takes a pointer to either of the property
> returns while get_physical_device_display_plane_properties* and
> get_display_mode_properties* open-code things.
>
> I'm easy with which style you pick, but I think they should be the
> same. I have a mild preference for the second style as I think it's
> easier to read the code without all of the conditionals.
>
I did that mostly because the iteration in
get_physical_device_display_properties was more complicated and seemed to
require "real" set-up. It's not terrible so I'd be ok with open-coding it
if needed. Another option would be to create a temporary and call the 2
variant and then copy the elements one-by-one into the output. Sadly, it's
gross no matter which way we go. Thoughts?
--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180619/50e81cd8/attachment.html>
More information about the mesa-dev
mailing list