st/dri: fix missing array size init.
authorDave Airlie <airlied@redhat.com>
Tue, 1 Mar 2011 08:29:24 +0000 (18:29 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Mar 2011 08:29:24 +0000 (18:29 +1000)
Init array size to 1,

reported by bnf on irc.

src/gallium/state_trackers/dri/drm/dri2.c

index 0181588096defeff826bdddcd2f8107096d3702b..d42aae991616460cea1aebab42dc881e16264fe3 100644 (file)
@@ -317,6 +317,7 @@ dri2_allocate_buffer(__DRIscreen *sPriv,
    templ.width0 = width;
    templ.height0 = height;
    templ.depth0 = 1;
+   templ.array_size = 1;
 
    buffer->resource =
       screen->base.screen->resource_create(screen->base.screen, &templ);