dri: Use designated initializers for DRI extension structs
authorChad Versace <chad.versace@linux.intel.com>
Mon, 19 Nov 2012 21:40:00 +0000 (13:40 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 19 Nov 2012 23:09:55 +0000 (15:09 -0800)
commit62332f41254c385e2290e8ee2d665c3116b3c1d6
treea65f1611ee3dc4dda78d7f11e41b22382479528d
parentfdd6d146d988f920744592ad7ba5667ef2981620
dri: Use designated initializers for DRI extension structs

The dri directory is compiled with -std=c99. There is no excuse to not use
designated initializers.

As a nice benefit, the code is now more friendly to grep. Without
designated initializers, psychic prowess is required to find the
initialization of DRI extension function pointers with grep.  I have
observed several people, when they first encounter the DRI code, fail at
statically chasing the DRI function pointers due to this problem.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/common/dri_util.c