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>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user