[Mesa-dev] [Bug 97967] glsl/tests/cache-test regression

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Sep 29 01:30:25 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97967

            Bug ID: 97967
           Summary: glsl/tests/cache-test regression
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Keywords: bisected, regression
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: vlee at freedesktop.org
        QA Contact: mesa-dev at lists.freedesktop.org
                CC: eric at anholt.net, t_arceri at yahoo.com.au

mesa: 8c60bcb4c317026e017a8ecffe303fd4e7f0db33 (master 12.1.0-devel)

make check fails on CentOS 7.2.

====================================================
   Mesa 12.1.0-devel: src/compiler/test-suite.log
====================================================

# TOTAL: 10
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: glsl/tests/cache-test
===========================

Mesa warning: Failed to create ./cache-test-tmp/xdg-cache-home for shader cache
(No such file or directory)---disabling.

Mesa warning: Failed to create ./cache-test-tmp/mesa-glsl-cache-dir for shader
cache (No such file or directory)---disabling.

Error: Test 'cache_put eviction with MAX_SIZE=1K' failed: Expected=1, Actual=2
Error: Test 'eviction after overflow with MAX_SIZE=1M' failed: Expected=2,
Actual=3


87ab26b2ab35a29d446ae66f1795d40c184c0739 is the first bad commit
commit 87ab26b2ab35a29d446ae66f1795d40c184c0739
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date:   Wed Sep 28 08:55:02 2016 +1000

    glsl: Add initial functions to implement an on-disk cache

    This code provides for an on-disk cache of objects. Objects are stored
    and retrieved via names that are arbitrary 20-byte sequences,
    (intended to be SHA-1 hashes of something identifying for the
    content). The directory used for the cache can be specified by means
    of environment variables in the following priority order:

        $MESA_GLSL_CACHE_DIR
        $XDG_CACHE_HOME/mesa
        <user-home-directory>/.cache/mesa

    By default the cache will be limited to a maximum size of 1GB. The
    environment variable:

        $MESA_GLSL_CACHE_MAX_SIZE

    can be set (at the time of GL context creation) to choose some other
    size. This variable is a number that can optionally be followed by
    'K', 'M', or 'G' to select a size in kilobytes, megabytes, or
    gigabytes. By default, an unadorned value will be interpreted as
    gigabytes.

    The cache will be entirely disabled at runtime if the variable
    MESA_GLSL_CACHE_DISABLE is set at the time of GL context creation.

    Many thanks to Kristian Høgsberg <krh at bitplanet.net> for the initial
    implementation of code that led to this patch. In particular, the idea
    of using an mmapped file, (indexed by a portion of the SHA-1), for the
    efficent implementation of cache_has_key was entirely his
    idea. Kristian also provided some very helpful advice in discussions
    regarding various race conditions to be avoided in this code.

    Signed-off-by: Timothy Arceri <timothy.arceri at collabora.com>
    Reviewed-by: Eric Anholt <eric at anholt.net>

:100644 100644 b9e6000a3d56cae090469657a86e222e13836215
c702b5399949f8972535d7db4f523b404c0836ec M      configure.ac
:040000 040000 becff3daff0cdfc5d5e83ef57d1a4ea72d705932
fed451616b0589d077aeb27223fc8310b8473a95 M      src
bisect run success

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160929/7fb48c7c/attachment.html>


More information about the mesa-dev mailing list