summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-08 09:50:49 -0600
committerBrian <[email protected]>2007-08-08 09:52:08 -0600
commit7523f490b0166b00e24429c33f8958c3be72ccb5 (patch)
treea639b97469b0fad71be17e3c243f45a2bc04055f
parent8a475cb791a0e66fcdc3fcd12c517fcb98d75957 (diff)
define i915_surface struct
-rw-r--r--src/mesa/pipe/i915simple/i915_surface.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_surface.c b/src/mesa/pipe/i915simple/i915_surface.c
index 73d33570f6a..12b39bb1e4a 100644
--- a/src/mesa/pipe/i915simple/i915_surface.c
+++ b/src/mesa/pipe/i915simple/i915_surface.c
@@ -31,8 +31,32 @@
#include "main/imports.h"
+struct i915_surface
+{
+ struct pipe_surface surface;
+ /* anything else? */
+};
+
+
+static void
+i915_get_tile(struct pipe_surface *ps,
+ GLuint x, GLuint y, GLuint w, GLuint h, GLfloat *p)
+{
+ /* any need to get tiles from i915 surfaces? */
+}
+
+
+static void
+i915_put_tile(struct pipe_surface *ps,
+ GLuint x, GLuint y, GLuint w, GLuint h, const GLfloat *p)
+{
+ /* any need to put tiles into i915 surfaces? */
+}
+
+
+
static struct pipe_surface *
-i915_surface_alloc(struct pipe_context *pipe, GLenum format)
+i915_surface_alloc(struct pipe_context *pipe, GLuint format)
{
struct i915_surface *surf = CALLOC_STRUCT(i915_surface);
@@ -40,6 +64,10 @@ i915_surface_alloc(struct pipe_context *pipe, GLenum format)
return NULL;
surf->surface.format = format;
+ surf->surface.refcount = 1;
+
+ surf->surface.get_tile = i915_get_tile;
+ surf->surface.put_tile = i915_put_tile;
return &surf->surface;
}