[Mesa-dev] [PATCH 17/31] mesa: Switch to bitmask based enabled lights in gen_matypes.c

Mathias.Froehlich at gmx.net Mathias.Froehlich at gmx.net
Tue Jun 7 05:30:32 UTC 2016


From: Mathias Fröhlich <mathias.froehlich at web.de>

Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
---
 src/mesa/x86/gen_matypes.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c
index 18ffb72..fc06dc7 100644
--- a/src/mesa/x86/gen_matypes.c
+++ b/src/mesa/x86/gen_matypes.c
@@ -125,7 +125,7 @@ int main( int argc, char **argv )
    OFFSET( "CTX_LIGHT_COLOR_MAT_MODE    ", struct gl_context, Light.ColorMaterialMode );
    OFFSET( "CTX_LIGHT_COLOR_MAT_MASK    ", struct gl_context, Light._ColorMaterialBitmask );
    OFFSET( "CTX_LIGHT_COLOR_MAT_ENABLED ", struct gl_context, Light.ColorMaterialEnabled );
-   OFFSET( "CTX_LIGHT_ENABLED_LIST      ", struct gl_context, Light.EnabledList );
+   OFFSET( "CTX_LIGHT_ENABLED_LIGHTS    ", struct gl_context, Light._EnabledLights );
    OFFSET( "CTX_LIGHT_NEED_VERTS        ", struct gl_context, Light._NeedVertices );
    OFFSET( "CTX_LIGHT_BASE_COLOR        ", struct gl_context, Light._BaseColor );
 
@@ -208,8 +208,6 @@ int main( int argc, char **argv )
     */
    OFFSET_HEADER( "struct gl_light" );
 
-   OFFSET( "LIGHT_NEXT              ", struct gl_light, next );
-   OFFSET( "LIGHT_PREV              ", struct gl_light, prev );
    printf( "\n" );
    OFFSET( "LIGHT_AMBIENT           ", struct gl_light, Ambient );
    OFFSET( "LIGHT_DIFFUSE           ", struct gl_light, Diffuse );
-- 
2.5.5



More information about the mesa-dev mailing list