OSDN Git Service

mesa: remove gl_light::_SpotExpTable field
authorBrian Paul <brianp@vmware.com>
Thu, 9 Feb 2012 03:11:58 +0000 (20:11 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Feb 2012 15:06:56 +0000 (08:06 -0700)
commitae509f88a54b9cc32f16099109330f2792593c83
tree482cf3dde475b64fcc3c2d2e9dee17db6df3c23f
parent4dacf793c8bf5c18f66efeb04e9d8a7e037e7378
mesa: remove gl_light::_SpotExpTable field

Just use pow() instead.  Spot lights aren't too common and fixed-function
lighting isn't as important as it used to me.

This saves 32KB per context.  Each table was 4KB and there's 8 lights.
src/mesa/main/light.c
src/mesa/main/light.h
src/mesa/main/mtypes.h
src/mesa/tnl/t_rasterpos.c
src/mesa/tnl/t_vb_lighttmp.h
src/mesa/x86/gen_matypes.c