mesa: Don't use alignments < 4.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 14 Aug 2008 09:11:51 +0000 (10:11 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 14 Aug 2008 10:01:42 +0000 (11:01 +0100)
src/mesa/state_tracker/st_atom_constbuf.c

index 2856e0f0e0fe02fe99937621a710d0f60bb584a1..d3aadf5074db25d696078b536444f128ac0ca7ef 100644 (file)
@@ -74,7 +74,7 @@ void st_upload_constants( struct st_context *st,
        * avoid gratuitous rendering synchronization.
        */
       pipe_reference_buffer(pipe, &cbuf->buffer, NULL );
-      cbuf->buffer = pipe_buffer_create(pipe, 1, PIPE_BUFFER_USAGE_CONSTANT,
+      cbuf->buffer = pipe_buffer_create(pipe, 16, PIPE_BUFFER_USAGE_CONSTANT,
                                        paramBytes );
 
       if (0)