[Mesa-dev] [counter-PATCH 2/2] Vulkan/wsi: Implement VK_EXT_display_surface_counter

Keith Packard keithp at keithp.com
Wed Jun 20 05:06:55 UTC 2018


Jason Ekstrand <jason at jlekstrand.net> writes:

> C99 guarantees that, one one field is initialized with a designated
> initializer then all fields not explicitly initialized get
> zero-initialized.  I can add it if you'd like none the less.

Yeah, I just thought it would be clearer to the reader if the field were
explicitly initialized to the correct value, rather than having the
compiler do it.

>> This should probably be at the top of wsi_common.h with the other
>> structure type values so we don't accidentally re-use this value.
>>
>
> Sure.

Awesome. Sounds like you're good to go. With the addition of the
explicit initialization, this patch is

Reviewed-by: Keith Packard <keithp at keithp.com>

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180619/35a246cf/attachment.sig>


More information about the mesa-dev mailing list