summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-09-19 11:56:37 +1000
committerTimothy Arceri <[email protected]>2018-10-03 09:49:21 +1000
commit397f2603ebd9f29a49d5fb722c03fefd84e837d1 (patch)
tree2055a25760aa2a1d2477d1c0f67286928048683c /src
parent2169acbf34e99842b6234ee8181e1908aafcf120 (diff)
nouveau: use build-id when available for disk cache
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_screen.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c
index c97b707955c..eb184d3559b 100644
--- a/src/gallium/drivers/nouveau/nouveau_screen.c
+++ b/src/gallium/drivers/nouveau/nouveau_screen.c
@@ -148,18 +148,18 @@ nouveau_screen_bo_get_handle(struct pipe_screen *pscreen,
static void
nouveau_disk_cache_create(struct nouveau_screen *screen)
{
- uint32_t mesa_timestamp;
- char *timestamp_str;
+ uint32_t mesa_id;
+ char *mesa_id_str;
int res;
- if (disk_cache_get_function_timestamp(nouveau_disk_cache_create,
- &mesa_timestamp)) {
- res = asprintf(&timestamp_str, "%u", mesa_timestamp);
+ if (disk_cache_get_function_identifier(nouveau_disk_cache_create,
+ &mesa_id)) {
+ res = asprintf(&mesa_id_str, "%u", mesa_id);
if (res != -1) {
screen->disk_shader_cache =
disk_cache_create(nouveau_screen_get_name(&screen->base),
- timestamp_str, 0);
- free(timestamp_str);
+ mesa_id_str, 0);
+ free(mesa_id_str);
}
}
}