[Mesa-dev] [PATCH 5/8] gallium: add get_disk_shader_cache() callback

Michel Dänzer michel at daenzer.net
Wed Feb 22 06:23:51 UTC 2017


On 22/02/17 12:45 PM, Timothy Arceri wrote:
> 
> +get_disk_shader_cache
> +^^^^^^^^^^^^^^^^^^^^^
> +
> +Returns a pointer to driver-specific on-disk shader cache. If the driver
> +failed to create the cache or does not support an on-disk shader cache NULL is
> +returned.

[...]

> +   /**
> +    * Returns a pointer to driver-specific on-disk shader cache. If the driver
> +    * failed to create the cache or does not support an on-disk shader cache
> +    * NULL is returned.
> +    */
> +   struct disk_cache *(*get_disk_shader_cache)(struct pipe_screen *screen);
>  };

Drivers which don't support an on-disk shader cache don't set this
callback in the first place, right? :) (Just a suggestion for
improvement before landing this patch, not a blocker, no need to resend)


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list