summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-15 01:08:24 +0000
committerBrian Paul <[email protected]>2005-09-15 01:08:24 +0000
commit9a22b555cf533f7801f79af7f568453860784166 (patch)
treeb64904fcbaa8dc10c5ee2efe2dab8678ae334b3d /src/mesa
parentda9f65268db5d0468f91860d9ef9f244587c7f48 (diff)
updated comments
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/swrast.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h
index 86cc7d2cc89..0bf91911a38 100644
--- a/src/mesa/swrast/swrast.h
+++ b/src/mesa/swrast/swrast.h
@@ -244,26 +244,24 @@ _swrast_copy_texsubimage3d(GLcontext *ctx,
GLint x, GLint y, GLsizei width, GLsizei height);
-/* The driver interface for the software rasterizer.
- * Unless otherwise noted, all functions are mandatory.
+/**
+ * The driver interface for the software rasterizer.
+ * XXX this may go away.
+ * We may move these functions to ctx->Driver.RenderStart, RenderEnd.
*/
struct swrast_device_driver {
- /***
- *** Functions for synchronizing access to the framebuffer:
- ***/
-
- void (*SpanRenderStart)(GLcontext *ctx);
- void (*SpanRenderFinish)(GLcontext *ctx);
- /* OPTIONAL.
+ /*
+ * These are called before and after accessing renderbuffers during
+ * software rasterization.
*
- * Called before and after all rendering operations, including DrawPixels,
- * ReadPixels, Bitmap, span functions, and CopyTexImage, etc commands.
* These are a suitable place for grabbing/releasing hardware locks.
*
* NOTE: The swrast triangle/line/point routines *DO NOT* call
* these functions. Locking in that case must be organized by the
* driver by other mechanisms.
*/
+ void (*SpanRenderStart)(GLcontext *ctx);
+ void (*SpanRenderFinish)(GLcontext *ctx);
};