diff options
author | Jordan Justen <[email protected]> | 2017-02-25 02:30:06 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2017-10-31 23:46:53 -0700 |
commit | 1a61a8b9a7c7cdbb42b74a76c2ec825f7107cc83 (patch) | |
tree | 5527eaff0dbb79bae3f4b5bc60f314be6d04728a /src/mesa/SConscript | |
parent | ccb700526f647e0d02cb1c500b6aee083ba1b9d7 (diff) |
i965: Initialize disk shader cache if MESA_GLSL_CACHE_DISABLE is false
(Apologies for the double negative.)
For now, the shader cache is disabled by default on i965 to allow us
to verify its stability.
In other words, to enable the shader cache on i965, set
MESA_GLSL_CACHE_DISABLE to false or 0. If the variable is unset, then
the shader cache will be disabled.
We use the build-id of i965_dri.so for the timestamp, and the pci
device id for the device name.
v2:
* Simplify code by forcing link to include build id sha. (Matt)
v3:
* Don't use a for loop with snprintf for bin to hex. (Matt)
* Assume fixed length render and timestamp string to further simplify
code.
Cc: Matt Turner <[email protected]>
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/SConscript')
0 files changed, 0 insertions, 0 deletions