Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | CONTEXT_ALIGN (64<<10) |
Functions | |
void | i915_gem_context_init (struct drm_device *dev) |
void | i915_gem_context_fini (struct drm_device *dev) |
void | i915_gem_context_close (struct drm_device *dev, struct drm_file *file) |
int | i915_switch_context (struct intel_ring_buffer *ring, struct drm_file *file, int to_id) |
int | i915_gem_context_create_ioctl (struct drm_device *dev, void *data, struct drm_file *file) |
int | i915_gem_context_destroy_ioctl (struct drm_device *dev, void *data, struct drm_file *file) |
#define CONTEXT_ALIGN (64<<10) |
Definition at line 96 of file i915_gem_context.c.
void i915_gem_context_close | ( | struct drm_device * | dev, |
struct drm_file * | file | ||
) |
Definition at line 302 of file i915_gem_context.c.
int i915_gem_context_create_ioctl | ( | struct drm_device * | dev, |
void * | data, | ||
struct drm_file * | file | ||
) |
Definition at line 477 of file i915_gem_context.c.
int i915_gem_context_destroy_ioctl | ( | struct drm_device * | dev, |
void * | data, | ||
struct drm_file * | file | ||
) |
Definition at line 507 of file i915_gem_context.c.
void i915_gem_context_fini | ( | struct drm_device * | dev | ) |
Definition at line 274 of file i915_gem_context.c.
void i915_gem_context_init | ( | struct drm_device * | dev | ) |
Definition at line 242 of file i915_gem_context.c.
int i915_switch_context | ( | struct intel_ring_buffer * | ring, |
struct drm_file * | file, | ||
int | to_id | ||
) |
i915_switch_context() - perform a GPU context switch. : ring for which we'll execute the context switch : file_priv associated with the context, may be NULL : context id number : sequence number by which the new context will be switched to :
The context life cycle is simple. The context refcount is incremented and decremented by 1 and create and destroy. If the context is in use by the GPU, it will have a refoucnt > 1. This allows us to destroy the context abstract object while letting the normal object tracking destroy the backing BO.
Definition at line 450 of file i915_gem_context.c.