summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-03-01 18:29:24 +1000
committerDave Airlie <[email protected]>2011-03-01 18:29:24 +1000
commit02448f2241d90fdbf97b0197e857a8f5acf5d4c7 (patch)
tree63b10001aeb94dd5dc0d650cfac19a07de279269 /src/gallium/state_trackers/dri
parent2d62e39c622124566779e504e7ed26eee96785fb (diff)
st/dri: fix missing array size init.
Init array size to 1, reported by bnf on irc.
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c1
1 files changed, 1 insertions, 0 deletions
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);