summaryrefslogtreecommitdiff
path: root/src/xvmc/intel_batchbuffer.h
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2008-06-24 16:43:40 +0800
committerZou Nan hai <nanhai.zou@intel.com>2008-06-24 16:43:40 +0800
commit277632d8c37cf43c7c1178ae7d5a2e6d5705968c (patch)
tree7e51ae501f9ca0d125386a3a40805c8c57ff7382 /src/xvmc/intel_batchbuffer.h
parent6b6be2b2a7179c1c9fa12989e16076aae105f4e2 (diff)
965 xvmc, current only frame based DCT_type support
Diffstat (limited to 'src/xvmc/intel_batchbuffer.h')
-rw-r--r--src/xvmc/intel_batchbuffer.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/xvmc/intel_batchbuffer.h b/src/xvmc/intel_batchbuffer.h
index aec71e4a..d0785228 100644
--- a/src/xvmc/intel_batchbuffer.h
+++ b/src/xvmc/intel_batchbuffer.h
@@ -6,29 +6,23 @@
extern int VERBOSE;
#endif
-#define BATCH_LOCALS char *batch_ptr;
+#define BATCH_LOCALS unsigned char *batch_ptr;
#define BEGIN_BATCH(n) \
do { \
- if (VERBOSE) fprintf(stderr, \
- "BEGIN_BATCH(%ld) in %s, %d dwords free\n", \
- ((unsigned long)n), __FUNCTION__, \
- xvmc_driver->batch.space/4); \
- if (xvmc_driver->batch.space < (n)*4) \
- intelFlushBatch(TRUE); \
- batch_ptr = xvmc_driver->batch.ptr; \
+ if (xvmc_driver->batch.space < (n)*4) \
+ intelFlushBatch(TRUE); \
+ batch_ptr = xvmc_driver->batch.ptr; \
} while (0)
#define OUT_BATCH(n) \
do { \
- *(GLuint *)batch_ptr = (n); \
- if (VERBOSE) fprintf(stderr, " -- %08x at %s/%d\n", (n), __FILE__, __LINE__); \
+ *(unsigned int *)batch_ptr = (n); \
batch_ptr += 4; \
} while (0)
#define ADVANCE_BATCH() \
do { \
- if (VERBOSE) fprintf(stderr, "ADVANCE_BATCH()\n"); \
xvmc_driver->batch.space -= (batch_ptr - xvmc_driver->batch.ptr); \
xvmc_driver->batch.ptr = batch_ptr; \
assert(xvmc_driver->batch.space >= 0); \