From 09aa4b36902194646384cccbdee8a07832aebac7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 21 Feb 2008 10:42:07 -0800 Subject: [965] remove dead brw_parameter_list_state_flags. This was replaced by Mesa core code. --- src/mesa/drivers/dri/i965/brw_util.c | 80 ------------------------------------ 1 file changed, 80 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_util.c b/src/mesa/drivers/dri/i965/brw_util.c index b6deee2376..d8d35c574e 100644 --- a/src/mesa/drivers/dri/i965/brw_util.c +++ b/src/mesa/drivers/dri/i965/brw_util.c @@ -45,86 +45,6 @@ GLuint brw_count_bits( GLuint val ) } -static GLuint brw_parameter_state_flags(const gl_state_index state[]) -{ - switch (state[0]) { - case STATE_MATERIAL: - case STATE_LIGHT: - case STATE_LIGHTMODEL_AMBIENT: - case STATE_LIGHTMODEL_SCENECOLOR: - case STATE_LIGHTPROD: - return _NEW_LIGHT; - - case STATE_TEXGEN: - case STATE_TEXENV_COLOR: - return _NEW_TEXTURE; - - case STATE_FOG_COLOR: - case STATE_FOG_PARAMS: - return _NEW_FOG; - - case STATE_CLIPPLANE: - return _NEW_TRANSFORM; - - case STATE_POINT_SIZE: - case STATE_POINT_ATTENUATION: - return _NEW_POINT; - - case STATE_MODELVIEW_MATRIX: - return _NEW_MODELVIEW; - case STATE_PROJECTION_MATRIX: - return _NEW_PROJECTION; - case STATE_MVP_MATRIX: - return _NEW_MODELVIEW | _NEW_PROJECTION; - case STATE_TEXTURE_MATRIX: - return _NEW_TEXTURE_MATRIX; - case STATE_PROGRAM_MATRIX: - return _NEW_TRACK_MATRIX; - - case STATE_DEPTH_RANGE: - return _NEW_VIEWPORT; - - case STATE_FRAGMENT_PROGRAM: - case STATE_VERTEX_PROGRAM: - return _NEW_PROGRAM; - - case STATE_INTERNAL: - switch (state[1]) { - case STATE_NORMAL_SCALE: - return _NEW_MODELVIEW; - case STATE_TEXRECT_SCALE: - return _NEW_TEXTURE; - default: - assert(0); - return 0; - } - - default: - assert(0); - return 0; - } -} - - -GLuint -brw_parameter_list_state_flags(struct gl_program_parameter_list *paramList) -{ - GLuint i; - GLuint result = 0; - - if (!paramList) - return 0; - - for (i = 0; i < paramList->NumParameters; i++) { - if (paramList->Parameters[i].Type == PROGRAM_STATE_VAR) { - result |= brw_parameter_state_flags(paramList->Parameters[i].StateIndexes); - } - } - - return result; -} - - GLuint brw_translate_blend_equation( GLenum mode ) { switch (mode) { -- cgit v1.2.3