projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d62e39
)
st/dri: fix missing array size init.
author
Dave Airlie
<airlied@redhat.com>
Tue, 1 Mar 2011 08:29:24 +0000
(18:29 +1000)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/drm/dri2.c
b/src/gallium/state_trackers/dri/drm/dri2.c
index 0181588096defeff826bdddcd2f8107096d3702b..d42aae991616460cea1aebab42dc881e16264fe3 100644
(file)
--- 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);