~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/i965/brw_aub.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
   struct aub_block_header bh;
60
60
   unsigned int data;
61
61
 
 
62
   static int nr;
 
63
   
 
64
   nr++;
 
65
 
62
66
   /* Emit the aub header:
63
67
    */
64
68
   memset(&fh, 0, sizeof(fh));
67
71
   fh.minor = 0x0;
68
72
   fh.major = 0x7;
69
73
   memcpy(fh.application, __progname, sizeof(fh.application));
70
 
   fh.day = 0x0;
 
74
   fh.day = (nr>>24) & 0xff;
71
75
   fh.month = 0x0;
72
76
   fh.year = 0x0;
73
77
   fh.timezone = 0x0;
74
 
   fh.second = 0x0;
75
 
   fh.minute = 0x0;
76
 
   fh.hour = 0x0;
 
78
   fh.second = nr & 0xff;
 
79
   fh.minute = (nr>>8) & 0xff;
 
80
   fh.hour = (nr>>16) & 0xff;
77
81
   fh.comment_length = 0x0;   
78
82
 
79
83
   if (fwrite(&fh, sizeof(fh), 1, aub_file) < 0) 
270
274
/* Attempt to prevent monster aubfiles by closing and reopening when
271
275
 * the state pools wrap.
272
276
 */
273
 
void brw_aub_wrap( struct intel_context *intel )
 
277
static void brw_aub_wrap( struct intel_context *intel )
274
278
{
275
279
   struct brw_context *brw = brw_context(&intel->ctx);   
276
280
   if (intel->aub_file) {
291
295
 
292
296
   i++;
293
297
 
 
298
   if (_mesa_getenv("INTEL_REPLAY"))
 
299
      return 0;
 
300
 
294
301
   if (_mesa_getenv("INTEL_AUBFILE")) {
295
302
      val = snprintf(filename, sizeof(filename), "%s%d.aub", _mesa_getenv("INTEL_AUBFILE"), i%4);
296
303
      _mesa_printf("--> Aub file: %s\n", filename);