summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/intel_context.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-11-29 01:16:12 +0000
committerEric Anholt <anholt@FreeBSD.org>2006-11-29 01:16:12 +0000
commit3cd06cf8c5ef6a27e36c584e12ba79ed8dacbf28 (patch)
tree01b1c257356478a276827a7b7f670b7caae051a9 /src/mesa/drivers/dri/i965/intel_context.h
parent716091a6a0a9a4cc03f0aa61a3a6518b0648f167 (diff)
Add accelerated CopyPixels for non-overlapping, 1:1 blits.
Submitted by Gary Wong <gtw@gnu.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_context.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_context.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.h b/src/mesa/drivers/dri/i965/intel_context.h
index 2df8faef28..a8f7a61ba3 100644
--- a/src/mesa/drivers/dri/i965/intel_context.h
+++ b/src/mesa/drivers/dri/i965/intel_context.h
@@ -86,6 +86,11 @@ struct intel_texture_object
+/* Identifiers for use with install_meta_state below */
+enum
+{
+ META_FULL, META_VERTEX_ONLY
+};
struct intel_context
{
@@ -132,7 +137,8 @@ struct intel_context
/* Metaops:
*/
- void (*install_meta_state)( struct intel_context *intel );
+ void (*install_meta_state)( struct intel_context *intel,
+ GLenum state );
void (*leave_meta_state)( struct intel_context *intel );
void (*meta_draw_region)( struct intel_context *intel,
@@ -151,6 +157,8 @@ struct intel_context
void (*meta_no_stencil_write)( struct intel_context *intel );
void (*meta_no_depth_write)( struct intel_context *intel );
void (*meta_no_texture)( struct intel_context *intel );
+ void (*meta_frame_buffer_texture)( struct intel_context *intel,
+ GLint xoff, GLint yoff );
void (*meta_draw_quad)(struct intel_context *intel,
GLfloat x0, GLfloat x1,
@@ -218,6 +226,7 @@ struct intel_context
int drawY;
GLuint numClipRects; /* cliprects for that buffer */
drm_clip_rect_t *pClipRects;
+ struct gl_texture_object *frame_buffer_texobj;
GLboolean scissor;
drm_clip_rect_t draw_rect;