[Mesa-dev] [PATCH mesa] anv: correctly use vulkan 1.0 by default

Bas Nieuwenhuizen basni at chromium.org
Mon Nov 26 09:49:18 UTC 2018


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Mon, Nov 26, 2018 at 5:14 AM Lionel Landwerlin
<lionel.g.landwerlin at intel.com> wrote:
>
> On 23/11/2018 19:47, Eric Engestrom wrote:
> > Per chapter 3.2 "Instances":
> >> Providing a NULL VkInstanceCreateInfo::pApplicationInfo or providing
> >> an apiVersion of 0 is equivalent to providing an apiVersion of
> >> VK_MAKE_VERSION(1,0,0).
> > Reported-by: Niklas Haas <git at haasn.xyz>
> > Fixes: 8c048af5890d43578ca4 "anv: Copy the appliation info into the instance"
> > Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
>
>
> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
>
>
> > ---
> >   src/intel/vulkan/anv_device.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
> > index f35a61fa0817a505a8f0..45ba2c1b10b6ee505be2 100644
> > --- a/src/intel/vulkan/anv_device.c
> > +++ b/src/intel/vulkan/anv_device.c
> > @@ -636,7 +636,7 @@ VkResult anv_CreateInstance(
> >      }
> >
> >      if (instance->app_info.api_version == 0)
> > -      anv_EnumerateInstanceVersion(&instance->app_info.api_version);
> > +      instance->app_info.api_version = VK_API_VERSION_1_0;
> >
> >      instance->enabled_extensions = enabled_extensions;
> >
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list