Fix up some confusion wrt winsys->buffer_create alignment / flags parameters.
authorMichel Dänzer <michel@tungstengraphics.com>
Mon, 10 Dec 2007 16:31:52 +0000 (17:31 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Mon, 10 Dec 2007 16:36:59 +0000 (17:36 +0100)
intel_winsys works again.

src/mesa/pipe/i915simple/i915_texture.c
src/mesa/pipe/softpipe/sp_texture.c
src/mesa/state_tracker/st_cb_fbo.c

index 59e8db8a951c0f696244fbe96603f353cd1b3b6b..fefd105adf7a50c813165054c23cdb0a72aa80c0 100644 (file)
@@ -495,9 +495,7 @@ i915_texture_create(struct pipe_context *pipe, struct pipe_texture **pt)
 
       if (i915->flags.is_i945 ? i945_miptree_layout(pipe, tex) :
          i915_miptree_layout(pipe, tex)) {
-        tex->buffer = pipe->winsys->buffer_create(pipe->winsys,
-                                                  PIPE_SURFACE_FLAG_TEXTURE,
-                                                  0, 0);
+        tex->buffer = pipe->winsys->buffer_create(pipe->winsys, 64, 0, 0);
 
         if (tex->buffer)
            pipe->winsys->buffer_data(pipe->winsys, tex->buffer,
index cfe962818458dfe6bfb0404232a655688e04a6f5..2dd1add6f7b1d717c201b9106ec5820d37df84f4 100644 (file)
@@ -381,10 +381,7 @@ softpipe_texture_create(struct pipe_context *pipe, struct pipe_texture **pt)
             sizeof(struct softpipe_texture) - sizeof(struct pipe_texture));
 
       if (softpipe_mipmap_tree_layout(pipe, spt)) {
-        spt->buffer = pipe->winsys->buffer_create(pipe->winsys,
-                                                  32,
-                                                  PIPE_SURFACE_FLAG_TEXTURE,
-                                                  0);
+        spt->buffer = pipe->winsys->buffer_create(pipe->winsys, 32, 0, 0);
 
         if (spt->buffer) {
            pipe->winsys->buffer_data(pipe->winsys, spt->buffer,
index 10396c3feb95a9cc10f393a2770e5cf96252ad07..36d25a576db50be3f214304eda4db4ed142390d2 100644 (file)
@@ -118,7 +118,7 @@ st_renderbuffer_alloc_storage(GLcontext * ctx, struct gl_renderbuffer *rb,
       pipe->winsys->buffer_reference(pipe->winsys, &strb->surface->buffer,
                                     NULL);
 
-   strb->surface->buffer = pipe->winsys->buffer_create(pipe->winsys, 32, flags, 0);
+   strb->surface->buffer = pipe->winsys->buffer_create(pipe->winsys, 32, 0, 0);
    if (!strb->surface->buffer)
       return GL_FALSE; /* out of memory, try s/w buffer? */