diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2013-07-02 23:17:14 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2013-07-09 14:08:53 -0700 |
commit | ca437579b3974b91a5298707c459908a628c1098 (patch) | |
tree | 294ac2ad5aa080554c23ebb79552e50b23fbcf31 /src/mesa/drivers/dri/i965/intel_buffer_objects.h | |
parent | 86f2711722dc10c25c2fabc09d8bd020a1ba6029 (diff) | |
download | external_mesa3d-ca437579b3974b91a5298707c459908a628c1098.zip external_mesa3d-ca437579b3974b91a5298707c459908a628c1098.tar.gz external_mesa3d-ca437579b3974b91a5298707c459908a628c1098.tar.bz2 |
i965: Pass brw_context to functions rather than intel_context.
This makes brw_context available in every function that used
intel_context. This makes it possible to start migrating fields from
intel_context to brw_context.
Surprisingly, this actually removes some code, as functions that use
OUT_BATCH don't need to declare "intel"; they just use "brw."
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
Acked-by: Paul Berry <stereotype441@gmail.com>
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_buffer_objects.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_buffer_objects.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.h b/src/mesa/drivers/dri/i965/intel_buffer_objects.h index 3c83c06..d320208 100644 --- a/src/mesa/drivers/dri/i965/intel_buffer_objects.h +++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.h @@ -52,27 +52,27 @@ struct intel_buffer_object /* Get the bm buffer associated with a GL bufferobject: */ -drm_intel_bo *intel_bufferobj_buffer(struct intel_context *intel, +drm_intel_bo *intel_bufferobj_buffer(struct brw_context *brw, struct intel_buffer_object *obj, GLuint flag); -drm_intel_bo *intel_bufferobj_source(struct intel_context *intel, +drm_intel_bo *intel_bufferobj_source(struct brw_context *brw, struct intel_buffer_object *obj, GLuint align, GLuint *offset); -void intel_upload_data(struct intel_context *intel, +void intel_upload_data(struct brw_context *brw, const void *ptr, GLuint size, GLuint align, drm_intel_bo **return_bo, GLuint *return_offset); -void *intel_upload_map(struct intel_context *intel, +void *intel_upload_map(struct brw_context *brw, GLuint size, GLuint align); -void intel_upload_unmap(struct intel_context *intel, +void intel_upload_unmap(struct brw_context *brw, const void *ptr, GLuint size, GLuint align, drm_intel_bo **return_bo, GLuint *return_offset); -void intel_upload_finish(struct intel_context *intel); +void intel_upload_finish(struct brw_context *brw); /* Hook the bufferobject implementation into mesa: */ |