Re: [Mesa-dev] [PATCH] i965: Use C99 struct initializers in brw_bufmgr.c.

2017-11-26 Thread Chris Wilson
Quoting Kenneth Graunke (2017-11-26 10:08:49) > 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' t

[Mesa-dev] [PATCH] i965: Use C99 struct initializers in brw_bufmgr.c.

2017-11-26 Thread Kenneth Graunke
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 s