Go to the source code of this file.
Data Structures | |
struct | intel_be_context |
Functions | |
boolean | intel_be_init_context (struct intel_be_context *intel, struct intel_be_device *device) |
Intialize a allocated intel_be_context struct. | |
void | intel_be_destroy_context (struct intel_be_context *intel) |
Destroy a intel_be_context. |
void intel_be_destroy_context | ( | struct intel_be_context * | intel | ) |
Destroy a intel_be_context.
Does not free the struct that is up to the winsys.
Definition at line 104 of file intel_be_context.c.
References intel_be_context::batch, and intel_be_batchbuffer_free().
00105 { 00106 intel_be_batchbuffer_free(intel->batch); 00107 }
boolean intel_be_init_context | ( | struct intel_be_context * | intel, | |
struct intel_be_device * | device | |||
) |
Intialize a allocated intel_be_context struct.
Remember to set the hardware_* functions.
Definition at line 85 of file intel_be_context.c.
References assert, intel_be_context::base, intel_be_context::batch, i915_winsys::batch_flush, i915_winsys::batch_get, i915_winsys::batch_reloc, intel_be_context::device, intel_be_batchbuffer_alloc(), intel_i915_batch_flush(), intel_i915_batch_get(), and intel_i915_batch_reloc().
00086 { 00087 assert(intel); 00088 assert(device); 00089 00090 intel->device = device; 00091 00092 /* TODO move framebuffer createion to the driver */ 00093 00094 intel->base.batch_get = intel_i915_batch_get; 00095 intel->base.batch_reloc = intel_i915_batch_reloc; 00096 intel->base.batch_flush = intel_i915_batch_flush; 00097 00098 intel->batch = intel_be_batchbuffer_alloc(intel); 00099 00100 return true; 00101 }