[Mesa-dev] [PATCH] anv: Alphabetize KHR extensions
Alejandro Piñeiro
apinheiro at igalia.com
Fri Apr 28 13:50:56 UTC 2017
On 28/04/17 15:46, Jason Ekstrand wrote:
> On Fri, Apr 28, 2017 at 6:43 AM, Alejandro Piñeiro
> <apinheiro at igalia.com <mailto:apinheiro at igalia.com>> wrote:
>
> Forget my question, didn't realize that the prefix was KHX instead of
> KHR. So:
> Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com
> <mailto:apinheiro at igalia.com>>
>
> On 28/04/17 15:39, Alejandro Piñeiro wrote:
> > On 28/04/17 14:59, Jason Ekstrand wrote:
> >> ---
> >> src/intel/vulkan/anv_device.c | 36
> ++++++++++++++++++------------------
> >> 1 file changed, 18 insertions(+), 18 deletions(-)
> >>
> >> diff --git a/src/intel/vulkan/anv_device.c
> b/src/intel/vulkan/anv_device.c
> >> index cf32df6..6b3202d 100644
> >> --- a/src/intel/vulkan/anv_device.c
> >> +++ b/src/intel/vulkan/anv_device.c
> >> @@ -302,9 +302,19 @@ anv_physical_device_finish(struct
> anv_physical_device *device)
> >>
> >> static const VkExtensionProperties global_extensions[] = {
> >> {
> >> + .extensionName =
> VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME,
> >> + .specVersion = 1,
> >> + },
> >> + {
> >> .extensionName = VK_KHR_SURFACE_EXTENSION_NAME,
> >> .specVersion = 25,
> >> },
> >> +#ifdef VK_USE_PLATFORM_WAYLAND_KHR
> >> + {
> >> + .extensionName = VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME,
> >> + .specVersion = 5,
> >> + },
> >> +#endif
> >> #ifdef VK_USE_PLATFORM_XCB_KHR
> >> {
> >> .extensionName = VK_KHR_XCB_SURFACE_EXTENSION_NAME,
> >> @@ -317,16 +327,6 @@ static const VkExtensionProperties
> global_extensions[] = {
> >> .specVersion = 6,
> >> },
> >> #endif
> >> -#ifdef VK_USE_PLATFORM_WAYLAND_KHR
> >> - {
> >> - .extensionName = VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME,
> >> - .specVersion = 5,
> >> - },
> >> -#endif
> >> - {
> >> - .extensionName =
> VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME,
> >> - .specVersion = 1,
> >> - },
> >> {
> >> .extensionName =
> VK_KHX_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME,
> > Shouldn't EXTERNAL_MEMORY_CAPABILITIES be moved too? (so being
> the first
> > one on the list of global extensions)
>
>
> That one is KHX not KHR. I decided not to move the KHX ones yet. I
> don't really have a good reason for that. I'm happy to put them in
> with the KHRs if someone wants.
As I mentioned, I made the question because I didn't realize that was a
KHX. I think that it is ok to leave it there. It can be moved when (if)
the extension became a KHR. So you have the Rb with the original patch.
>
>
> >> .specVersion = 1,
> >> @@ -335,11 +335,11 @@ static const VkExtensionProperties
> global_extensions[] = {
> >>
> >> static const VkExtensionProperties device_extensions[] = {
> >> {
> >> - .extensionName = VK_KHR_SWAPCHAIN_EXTENSION_NAME,
> >> - .specVersion = 68,
> >> + .extensionName =
> VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_EXTENSION_NAME,
> >> + .specVersion = 1,
> >> },
> >> {
> >> - .extensionName =
> VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME,
> >> + .extensionName = VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME,
> >> .specVersion = 1,
> >> },
> >> {
> >> @@ -347,20 +347,20 @@ static const VkExtensionProperties
> device_extensions[] = {
> >> .specVersion = 1,
> >> },
> >> {
> >> - .extensionName =
> VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME,
> >> + .extensionName = VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME,
> >> .specVersion = 1,
> >> },
> >> {
> >> - .extensionName = VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME,
> >> + .extensionName =
> VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME,
> >> .specVersion = 1,
> >> },
> >> {
> >> - .extensionName =
> VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_EXTENSION_NAME,
> >> + .extensionName =
> VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME,
> >> .specVersion = 1,
> >> },
> >> {
> >> - .extensionName = VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME,
> >> - .specVersion = 1,
> >> + .extensionName = VK_KHR_SWAPCHAIN_EXTENSION_NAME,
> >> + .specVersion = 68,
> >> },
> >> {
> >> .extensionName = VK_KHX_EXTERNAL_MEMORY_EXTENSION_NAME,
> > Same question for EXTERNAL_MEMORY and EXTERNAL_MEMORY_FD
> >
> > BR
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> <mailto:mesa-dev at lists.freedesktop.org>
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>
>
>
More information about the mesa-dev
mailing list