From: Dave Airlie Date: Tue, 1 Mar 2011 08:29:24 +0000 (+1000) Subject: st/dri: fix missing array size init. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02448f2241d90fdbf97b0197e857a8f5acf5d4c7;p=mesa.git st/dri: fix missing array size init. Init array size to 1, reported by bnf on irc. --- diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 0181588096d..d42aae99161 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -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);