summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_surface.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-06-20 09:41:41 -0600
committerBrian <[email protected]>2007-06-20 09:41:41 -0600
commit837f2c18c477f0695150b69b69a3a921b08943ec (patch)
tree5011c142da13673ded864ab8c56b979fecaa63ef /src/mesa/pipe/softpipe/sp_surface.h
parent73f96c51052bf5233191d852ef463462306bf1d5 (diff)
implement softpipe clearing (untested)
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_surface.h')
-rw-r--r--src/mesa/pipe/softpipe/sp_surface.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_surface.h b/src/mesa/pipe/softpipe/sp_surface.h
index dde6b90448e..fc9557dee3a 100644
--- a/src/mesa/pipe/softpipe/sp_surface.h
+++ b/src/mesa/pipe/softpipe/sp_surface.h
@@ -73,6 +73,19 @@ struct softpipe_surface {
void (*write_quad_ub)( struct softpipe_surface *,
GLint x, GLint y,
GLubyte (*rgba)[NUM_CHANNELS] );
+
+ void (*write_mono_row_ub)( struct softpipe_surface *,
+ GLuint count, GLint x, GLint y,
+ GLubyte rgba[NUM_CHANNELS] );
};
+
+/** Cast wrapper */
+static INLINE struct softpipe_surface *
+softpipe_surface(struct pipe_surface *ps)
+{
+ return (struct softpipe_surface *) ps;
+}
+
+
#endif