batch.patch revision 1265
98N/A--- src/intel_batchbuffer.h Wed Apr 6 06:11:55 2011
98N/A+++ src/intel_batchbuffer.h Fri Nov 4 08:28:39 2011
1466N/A@@ -30,9 +30,9 @@
98N/A #ifndef _INTEL_BATCHBUFFER_H
98N/A #define _INTEL_BATCHBUFFER_H
919N/A
919N/A-#define BATCH_RESERVED 16
919N/A+#define BATCH_RESERVED4k 4096
919N/A+#define BATCH_RESERVED16 16
919N/A
919N/A-
919N/A void intel_batch_init(ScrnInfoPtr scrn);
919N/A void intel_batch_teardown(ScrnInfoPtr scrn);
919N/A void intel_batch_emit_flush(ScrnInfoPtr scrn);
919N/A@@ -41,7 +41,10 @@
919N/A
919N/A static inline int intel_batch_space(intel_screen_private *intel)
919N/A {
919N/A- return (intel->batch_bo->size - BATCH_RESERVED) - (4*intel->batch_used);
919N/A+ if (IS_I865G(intel))
919N/A+ return (intel->batch_bo->size - BATCH_RESERVED16) - (4*intel->batch_used);
919N/A+ else
98N/A+ return (intel->batch_bo->size - BATCH_RESERVED4k) - (4*intel->batch_used);
98N/A }
98N/A
98N/A static inline int intel_vertex_space(intel_screen_private *intel)
493N/A