diff options
author | Jason Ekstrand <[email protected]> | 2018-06-29 18:02:07 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-07-02 13:07:06 -0700 |
commit | f5c38f4a30a7b6a0e883901db714af57ea820eb6 (patch) | |
tree | 2be95025e0a102f3d8b6fefb842b15e3082b7209 /src/intel/vulkan/anv_private.h | |
parent | eae192bf5f15b6e50ca0ead6b19f847bae1631ab (diff) |
anv: Add device-level helpers for searching for and uploading kernels
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 4fa23357dd6..1f1f9795cf3 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -938,6 +938,22 @@ anv_pipeline_cache_upload_kernel(struct anv_pipeline_cache *cache, uint32_t prog_data_size, const struct anv_pipeline_bind_map *bind_map); +struct anv_shader_bin * +anv_device_search_for_kernel(struct anv_device *device, + struct anv_pipeline_cache *cache, + const void *key_data, uint32_t key_size); + +struct anv_shader_bin * +anv_device_upload_kernel(struct anv_device *device, + struct anv_pipeline_cache *cache, + const void *key_data, uint32_t key_size, + const void *kernel_data, uint32_t kernel_size, + const void *constant_data, + uint32_t constant_data_size, + const struct brw_stage_prog_data *prog_data, + uint32_t prog_data_size, + const struct anv_pipeline_bind_map *bind_map); + struct anv_device { VK_LOADER_DATA _loader_data; |