Mesa (master): st/dri: fix missing array size init.
Dave Airlie
airlied at kemper.freedesktop.org
Tue Mar 1 08:36:31 UTC 2011
Module: Mesa
Branch: master
Commit: 02448f2241d90fdbf97b0197e857a8f5acf5d4c7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=02448f2241d90fdbf97b0197e857a8f5acf5d4c7
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Mar 1 18:29:24 2011 +1000
st/dri: fix missing array size init.
Init array size to 1,
reported by bnf on irc.
---
src/gallium/state_trackers/dri/drm/dri2.c | 1 +
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 0181588..d42aae9 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);
More information about the mesa-commit
mailing list