diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-10-07 15:47:45 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-10-14 15:40:39 -0700 |
commit | 6d557ae4032adafc85a4cb5a76d8653bf0cf6639 (patch) | |
tree | 94c651306b699af4217b1233c7f21aa13094f790 /src/intel/vulkan/anv_private.h | |
parent | 4c9dec80edeb7f1d1774ca51faa806241c1c59cb (diff) | |
download | external_mesa3d-6d557ae4032adafc85a4cb5a76d8653bf0cf6639.zip external_mesa3d-6d557ae4032adafc85a4cb5a76d8653bf0cf6639.tar.gz external_mesa3d-6d557ae4032adafc85a4cb5a76d8653bf0cf6639.tar.bz2 |
anv: Make entrypoint resolution take a gen_device_info
In order for things such as the ANV_CALL and the ifuncs to work, we used to
have a singleton gen_device_info structure that got assigned the first time
you create a device. Given that the driver will never be used
simultaneously on two different generations of hardware, this was fairly
safe to do. However, it has caused a few hickups and isn't, in general, a
good plan. Now that the two primary reasons for this singleton are gone,
we can get rid of it and make things quite a bit safer.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index b04881a..18cecdf 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1805,7 +1805,8 @@ struct anv_query_pool { struct anv_bo bo; }; -void *anv_lookup_entrypoint(const char *name); +void *anv_lookup_entrypoint(const struct gen_device_info *devinfo, + const char *name); void anv_dump_image_to_ppm(struct anv_device *device, struct anv_image *image, unsigned miplevel, |