Project

General

Profile

Feature #4044 » batch.patch

Ken Mays, 2013-08-14 09:09 PM

View differences:

src/uxa/intel_batchbuffer.h 2013-08-14 16:36:28.546875000 -0400
30 30
#ifndef _INTEL_BATCHBUFFER_H
31 31
#define _INTEL_BATCHBUFFER_H
32 32

  
33
#define BATCH_RESERVED		16
34

  
33
#define BATCH_RESERVED4k       4096
34
#define BATCH_RESERVED16       16
35 35

  
36 36
void intel_batch_init(ScrnInfoPtr scrn);
37 37
void intel_batch_teardown(ScrnInfoPtr scrn);
......
40 40

  
41 41
static inline int intel_batch_space(intel_screen_private *intel)
42 42
{
43
	return (intel->batch_bo->size - BATCH_RESERVED) - (4*intel->batch_used);
43
	if (IS_I865G(intel))
44
	    return (intel->batch_bo->size - BATCH_RESERVED16) - (4*intel->batch_used);
45
        else
46
	    return (intel->batch_bo->size - BATCH_RESERVED4k) - (4*intel->batch_used);
44 47
}
45 48

  
46 49
static inline int intel_vertex_space(intel_screen_private *intel)
(1-1/6)