dri/nouveau: don't use nested functions
authornobled <nobled@dreamwidth.org>
Sun, 4 Mar 2012 20:20:31 +0000 (15:20 -0500)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 6 Mar 2012 20:26:21 +0000 (21:26 +0100)
commit4aa1ac5fe94b5696095229ee3568bf4fa7cfed95
tree5d24810bb57b1bc5bc1b8f8767510f041cc912e7
parent1633dcd890d97bd5e4d125d57f2f529f04d14477
dri/nouveau: don't use nested functions

It's a GNU extension that isn't supported by clang right now:
http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Nested-Functions.html
http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc

With this, clang now compiles the nouveau classic driver.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44061

(Types changed from e.g. 'unsigned char' to 'GLubyte' so that the types can
be concatenated to form a unique function name without any whitespace
interfering.)

[ Francisco Jerez: give meaningful names to the dispatch functions. ]
src/mesa/drivers/dri/nouveau/nouveau_array.c
src/mesa/drivers/dri/nouveau/nouveau_render_t.c