Fix glitch with pool alignments.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 7 Sep 2006 16:29:37 +0000 (16:29 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 7 Sep 2006 16:29:37 +0000 (16:29 +0000)
src/mesa/drivers/dri/i965/brw_state_pool.c
src/mesa/drivers/dri/i965/bufmgr_fake.c

index 2b469638cff439489336e31b4220655349569312..d905da8000206bc388e68c9be5424239f68b023d 100644 (file)
@@ -95,7 +95,7 @@ static void brw_init_pool( struct brw_context *brw,
    pool->size = size;   
    pool->brw = brw;
    
-   bmGenBuffers(&brw->intel, "pool", 1, &pool->buffer, 0);
+   bmGenBuffers(&brw->intel, "pool", 1, &pool->buffer, 12);
 
    /* Also want to say not to wait on fences when data is presented
     */
index 1cb3f67b349a0a9f2ff80a7eab7d041fde634693..c6bdf8ecb8996549d711eebf07929f830989b49c 100644 (file)
@@ -634,7 +634,7 @@ static struct buffer *do_GenBuffer(struct intel_context *intel, const char *name
 
    buf->id = ++bm->buf_nr;
    buf->name = name;
-   buf->alignment = align ? align : 6; 
+   buf->alignment = align;     
    buf->flags = BM_MEM_AGP|BM_MEM_VRAM|BM_MEM_LOCAL;
 
    return buf;