summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-09-12 13:43:10 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-09-12 13:43:10 +0000
commite1ae10db2c211d33959f74d8c5c3faeec37fbccf (patch)
tree03f6324a87aa73206ded9f9d3485dd7f63d29922 /src/mesa/drivers/dri/i965
parentbd38df11f43d726d2df3ad0b66b6962e08cfe1d1 (diff)
Encode a unique id in the aub header date fields.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_aub.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_aub.c b/src/mesa/drivers/dri/i965/brw_aub.c
index cc70692add..f851a5b795 100644
--- a/src/mesa/drivers/dri/i965/brw_aub.c
+++ b/src/mesa/drivers/dri/i965/brw_aub.c
@@ -59,6 +59,10 @@ static void init_aubfile( FILE *aub_file )
struct aub_block_header bh;
unsigned int data;
+ static int nr;
+
+ nr++;
+
/* Emit the aub header:
*/
memset(&fh, 0, sizeof(fh));
@@ -67,13 +71,13 @@ static void init_aubfile( FILE *aub_file )
fh.minor = 0x0;
fh.major = 0x7;
memcpy(fh.application, __progname, sizeof(fh.application));
- fh.day = 0x0;
+ fh.day = (nr>>24) & 0xff;
fh.month = 0x0;
fh.year = 0x0;
fh.timezone = 0x0;
- fh.second = 0x0;
- fh.minute = 0x0;
- fh.hour = 0x0;
+ fh.second = nr & 0xff;
+ fh.minute = (nr>>8) & 0xff;
+ fh.hour = (nr>>16) & 0xff;
fh.comment_length = 0x0;
if (fwrite(&fh, sizeof(fh), 1, aub_file) < 0)