OSDN Git Service

intel: Use designated initializers for DRI extension structs
authorChad Versace <chad.versace@linux.intel.com>
Mon, 19 Nov 2012 19:43:51 +0000 (11:43 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 19 Nov 2012 23:09:55 +0000 (15:09 -0800)
commitc9f5126b15440fecf6ff705d5b9766767c1712af
treee90ac5fcd1551b1d8838658c01c0ec00901c9fca
parent62332f41254c385e2290e8ee2d665c3116b3c1d6
intel: Use designated initializers for DRI extension structs

All Intel code 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/intel/intel_screen.c