OSDN Git Service

util/disk_cache: hash pointer size and gpu name into cache keys
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 15 Mar 2017 23:09:31 +0000 (01:09 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 24 Mar 2017 00:20:09 +0000 (11:20 +1100)
commit5136c09e700bea2e1becbc32b073cfbbefdec1ec
tree142a6e0398f14058a285db481102f37a95f95ba3
parentfeb716239e1a318eb844fd3bcaca1ffd6903067c
util/disk_cache: hash pointer size and gpu name into cache keys

This allows to get rid of the arch and gpu name directories.

v2: (Timothy Arceri) don't use an opaque data type to store
    pointer size and gpu name.

v3: (Timothy Arceri) use blob to store driver keys just make sure
    to store null terminator for strings, and make sure blob is
    defined by disk_cache and not it's users.

v4: (Timothy Arceri) fix typo, and make ptr_size a uint8_t.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/tests/cache_test.c
src/util/disk_cache.c
src/util/disk_cache.h