summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-08-01 16:31:13 -0600
committerBrian Paul <[email protected]>2016-08-16 08:24:52 -0600
commitdcf2126f90a1daf226417bde71a62ccf0305adea (patch)
treed8aa66174c9e827f674630c5a57d3237b091bfff /src
parentced0dd0e9575c3eacd9a618c34175dde0463f393 (diff)
svga: remove unneeded memset() call in draw_vgpu10()
All three fields of the vbuffer_attrs[] array are assigned in the following loop. The remaining elements of the array are not used. Tested with full Piglit run, Heaven 4.0, etc. Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_draw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_draw.c b/src/gallium/drivers/svga/svga_draw.c
index 14a74065b0c..9d3f9eff29e 100644
--- a/src/gallium/drivers/svga/svga_draw.c
+++ b/src/gallium/drivers/svga/svga_draw.c
@@ -533,11 +533,10 @@ draw_vgpu10(struct svga_hwtnl *hwtnl,
{
SVGA3dVertexBuffer vbuffer_attrs[PIPE_MAX_ATTRIBS];
- memset(vbuffer_attrs, 0, sizeof(vbuffer_attrs));
-
for (i = 0; i < vbuf_count; i++) {
vbuffer_attrs[i].stride = hwtnl->cmd.vbufs[i].stride;
vbuffer_attrs[i].offset = hwtnl->cmd.vbufs[i].buffer_offset;
+ vbuffer_attrs[i].sid = 0;
}
/* If we haven't yet emitted a drawing command or if any