intel_context.h File Reference

Include dependency graph for intel_context.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  intel_context
 Intel rendering context, contains a state tracker and intel-specific info. More...
struct  intel_framebuffer
 Intel framebuffer. More...

Defines

#define INTEL_MAX_FIXUP   64
#define DBG(flag,...)
#define PCI_CHIP_845_G   0x2562
#define PCI_CHIP_I830_M   0x3577
#define PCI_CHIP_I855_GM   0x3582
#define PCI_CHIP_I865_G   0x2572
#define PCI_CHIP_I915_G   0x2582
#define PCI_CHIP_I915_GM   0x2592
#define PCI_CHIP_I945_G   0x2772
#define PCI_CHIP_I945_GM   0x27A2
#define PCI_CHIP_I945_GME   0x27AE
#define PCI_CHIP_G33_G   0x29C2
#define PCI_CHIP_Q35_G   0x29B2
#define PCI_CHIP_Q33_G   0x29D2

Functions

void LOCK_HARDWARE (struct intel_context *intel)
void UNLOCK_HARDWARE (struct intel_context *intel)
static struct intel_contextintel_context (__DRIcontextPrivate *driContextPriv)
 Cast wrapper.
static struct intel_framebufferintel_framebuffer (__DRIdrawablePrivate *driDrawPriv)
 Cast wrapper.

Variables

char * __progname


Define Documentation

#define DBG ( flag,
...   ) 

Definition at line 129 of file intel_context.h.

#define INTEL_MAX_FIXUP   64

Definition at line 48 of file intel_context.h.

#define PCI_CHIP_845_G   0x2562

Definition at line 134 of file intel_context.h.

#define PCI_CHIP_G33_G   0x29C2

Definition at line 143 of file intel_context.h.

#define PCI_CHIP_I830_M   0x3577

Definition at line 135 of file intel_context.h.

#define PCI_CHIP_I855_GM   0x3582

Definition at line 136 of file intel_context.h.

#define PCI_CHIP_I865_G   0x2572

Definition at line 137 of file intel_context.h.

#define PCI_CHIP_I915_G   0x2582

Definition at line 138 of file intel_context.h.

#define PCI_CHIP_I915_GM   0x2592

Definition at line 139 of file intel_context.h.

#define PCI_CHIP_I945_G   0x2772

Definition at line 140 of file intel_context.h.

#define PCI_CHIP_I945_GM   0x27A2

Definition at line 141 of file intel_context.h.

#define PCI_CHIP_I945_GME   0x27AE

Definition at line 142 of file intel_context.h.

#define PCI_CHIP_Q33_G   0x29D2

Definition at line 145 of file intel_context.h.

#define PCI_CHIP_Q35_G   0x29B2

Definition at line 144 of file intel_context.h.


Function Documentation

static struct intel_context* intel_context ( __DRIcontextPrivate *  driContextPriv  )  [static, read]

Cast wrapper.

Definition at line 150 of file intel_context.h.

00151 {
00152    return (struct intel_context *) driContextPriv->driverPrivate;
00153 }

static struct intel_framebuffer* intel_framebuffer ( __DRIdrawablePrivate *  driDrawPriv  )  [static, read]

Cast wrapper.

Definition at line 158 of file intel_context.h.

00159 {
00160    return (struct intel_framebuffer *) driDrawPriv->driverPrivate;
00161 }

void LOCK_HARDWARE ( struct intel_context intel  ) 

Definition at line 71 of file intel_lock.c.

00072 {
00073     char __ret = 0;
00074 
00075     pipe_mutex_lock(lockMutex);
00076     assert(!intel->locked);
00077 
00078     DRM_CAS(intel->driHwLock, intel->hHWContext,
00079             (DRM_LOCK_HELD|intel->hHWContext), __ret);
00080 
00081     if (__ret)
00082        intelContendedLock( intel, 0 );
00083 
00084     DBG(LOCK, "%s - locked\n", __progname);
00085 
00086     intel->locked = 1;
00087 }

void UNLOCK_HARDWARE ( struct intel_context intel  ) 

Definition at line 92 of file intel_lock.c.

00093 {
00094    assert(intel->locked);
00095    intel->locked = 0;
00096 
00097    DRM_UNLOCK(intel->driFd, intel->driHwLock, intel->hHWContext);
00098 
00099    pipe_mutex_unlock(lockMutex);
00100 
00101    DBG(LOCK, "%s - unlocked\n", __progname);
00102 }


Variable Documentation

char* __progname


Generated on Tue Sep 29 06:25:46 2009 for Gallium3D by  doxygen 1.5.4