i965: Use C99 struct initializers in brw_bufmgr.c.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 26 Nov 2017 09:14:26 +0000 (01:14 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 28 Nov 2017 23:23:16 +0000 (15:23 -0800)
commit874d41add3ed75e569ff9a94ad7065a082671409
tree95092adb4e2ff3e946f144b9543882d78d16ca53
parent3d68329a658dee58eb1b2f4af1cbf1f57257eb04
i965: Use C99 struct initializers in brw_bufmgr.c.

This is cleaner than using a non-standard memclear macro (which does a
memset to 0) and then initializing fields after the fact.  We move the
declarations to where we initialized the fields.  While we're at it, we
move the declaration of 'ret' that goes with the ioctl, eliminating the
declaration section altogether.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_bufmgr.c