269266359967be69f39d9aa2cddbe1faeb2eaa36 |
|
08-Feb-2017 |
Timothy Arceri <tarceri@itsqueeze.com> |
util/disk_cache: use stat() to check if entry is a directory d_type is not supported on all systems. Tested-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97967 (cherry picked from commit d7b3707c612027b354deea6bc5eae56a02d5f8d5) Squashed with commit: util/disk_cache: correctly use stat(3) I forgot to error check stat() and also I wasn't using the subdir in is_two_character_sub_directory(). Fixes: d7b3707c612 "util/disk_cache: use stat() to check if entry is a directory" Reviewed-by: Plamena Manolova <plamena.manolova@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 0cbde643eb29c8bf19eb8551ac8e821f7f733212)
/external/mesa3d/src/util/disk_cache.c
|
acc78377990ba986060214466d44ea364529c363 |
|
18-Jan-2017 |
Emil Velikov <emil.velikov@collabora.com> |
utils: build sha1/disk cache only with Android/Autoconf Earlier commit imported a SHA1 implementation and relaxed the SHA1 and disk cache handling, broking the Windows builds. Restrict things for now until we get to a proper fix. Fixes: d1efa09d342 "util: import sha1 implementation from OpenBSD" Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 9f8dc3bf03ec825bae7041858dda6ca2e9a34363)
/external/mesa3d/src/util/disk_cache.c
|
d1efa09d342bff3e5def2978a0bef748d74f9c82 |
|
13-Jan-2017 |
Emil Velikov <emil.velikov@collabora.com> |
util: import sha1 implementation from OpenBSD At the moment we support 5+ different implementations each with varying amount of bugs - from thread safely problems [1], to outright broken implementation(s) [2] In order to accommodate these we have 150+ lines of configure script and extra two configure toggles. Whist an actual implementation being ~200loc and our current compat wrapping ~250. Let's not forget that different people use different code paths, thus effectively makes it harder to test and debug since the default implementation is automatically detected. To minimise all these lovely experiences, import the "100% Public Domain" OpenBSD sha1 implementation. Clearly document any changes needed to get building correctly, since many/most of those can be upstreamed making future syncs easier. As an added bonus this will avoid all the 'fun' experiences trying to integrate it with the Android and SCons builds. v2: Manually expand __BEGIN_DECLS/__END_DECLS and document (Tapani). Furthermore it seems that some games (or surrounding runtime) static link against OpenSSL resulting in conflicts. For more information see the discussion thread [3] Bugzilla [1]: https://bugs.freedesktop.org/show_bug.cgi?id=94904 Bugzilla [2]: https://bugs.freedesktop.org/show_bug.cgi?id=97967 [3] https://lists.freedesktop.org/archives/mesa-dev/2017-January/140748.html Cc: Mark Janes <mark.a.janes@intel.com> Cc: Vinson Lee <vlee@freedesktop.org> Cc: Tapani Pälli <tapani.palli@intel.com> Cc: Jonathan Gray <jsg@jsg.id.au> Tested-by: Jonathan Gray <jsg@jsg.id.au> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Tapani Pälli <tapani.palli@intel.com> (v1) Acked-by: Jason Ekstrand <jason@jlekstrand.net> (v1)
/external/mesa3d/src/util/disk_cache.c
|
69cc7d90f9f60d95cd570a4e87755a474554d41f |
|
21-Nov-2016 |
Gwan-gyeong Mun <elongbug@gmail.com> |
util/disk_cache: close a previously opened handle in disk_cache_put (v2) We're missing the close() to the matching open(). CID 1373407 v2: Fixes from Emil Velikov's review Update the teardown in reverse order of the setup/init. Cc: "13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Mun Gwan-gyeong <elongbug@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (v1)
/external/mesa3d/src/util/disk_cache.c
|
a6ff2a3378636f4a261ea32c3dc870b0aeae3c03 |
|
13-Nov-2016 |
Marek Olšák <marek.olsak@amd.com> |
util/disk_cache: use unambiguous naming Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
/external/mesa3d/src/util/disk_cache.c
|
31727300e177b11c2b2b267838b59b090cb605d0 |
|
13-Nov-2016 |
Marek Olšák <marek.olsak@amd.com> |
util: import cache.c/h from glsl It's not dependent on GLSL and it can be useful for shader caches that don't deal with GLSL. v2: address review comments v3: keep the other 3 lines in configure.ac Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
/external/mesa3d/src/util/disk_cache.c
|