summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-15 14:14:24 +1100
committerTimothy Arceri <[email protected]>2017-03-17 16:17:10 +1100
commit315e8a9321bbd20e35d27f443c0541411ee682c2 (patch)
tree6cad83e921c61b495b612795a7974ef5d4c106c8 /src/amd/vulkan/radv_private.h
parent4ffdab78b9a497a8b597466bb6151837f71b0c6a (diff)
radv: always create an fallback pipeline cache
This will be used as an in-memory cache when a pipeline cache is not provided by the app. Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index dce1d508785..e4654bb4d4a 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -508,6 +508,9 @@ struct radv_device {
uint32_t *trace_id_ptr;
struct radv_physical_device *physical_device;
+
+ /* Backup in-memory cache to be used if the app doesn't provide one */
+ struct radv_pipeline_cache * mem_cache;
};
struct radv_device_memory {