diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-09 12:36:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-09 15:26:04 +0100 |
commit | 2e1bf7e1b44db16d0c322f17535fc6a6fa07353b (patch) | |
tree | 70efbdf147b8ba55d18535e2adf94d6ca03a2624 /src/sna/sna_driver.c | |
parent | f73cd955e760064f57f414dce5f39e43022e4ea6 (diff) |
sna: Record git-tree used for compilation
Hopefully, I have all the dependencies correct for auto-updating and
should continue to work with tarballs...
The next step is to perhaps include it in the usual version number,
perhaps as patch level?
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r-- | src/sna/sna_driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index 107659b8..36f40194 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -71,6 +71,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #include <sys/poll.h> #include "i915_drm.h" +#if HAVE_DOT_GIT +#include "git_version.h" +#endif + #if DEBUG_DRIVER #undef DBG #define DBG(x) ErrorF x @@ -1013,6 +1017,12 @@ void sna_init_scrn(ScrnInfoPtr scrn, int entity_num) { EntityInfoPtr entity; +#if HAVE_DOT_GIT + xf86DrvMsg(scrn->scrnIndex, X_INFO, + "SNA compiled from %s\n", + git_version); +#endif + DBG(("%s\n", __FUNCTION__)); sna_device_key = xf86AllocateEntityPrivateIndex(); |