diff options
author | Kenneth Graunke <[email protected]> | 2017-02-28 11:48:51 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-03-01 10:27:38 -0800 |
commit | c0e9e61c9a1eaaee9ca4dfc2f05da85a791c4c5d (patch) | |
tree | 4b9b17633f525c1acf80e032e30fd7e9f09c8088 /src/mesa/program | |
parent | f356d053935e81faf91905cf64dbdb91d0bc271d (diff) |
mesa: Drop unused STATE_TEXRECT_SCALE program statevars.
The last user is now gone.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/prog_statevars.c | 23 | ||||
-rw-r--r-- | src/mesa/program/prog_statevars.h | 1 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/mesa/program/prog_statevars.c b/src/mesa/program/prog_statevars.c index 5b073ac34bb..803d0afd8d3 100644 --- a/src/mesa/program/prog_statevars.c +++ b/src/mesa/program/prog_statevars.c @@ -458,24 +458,6 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index state[], 1); return; - case STATE_TEXRECT_SCALE: - /* Value = { 1/texWidth, 1/texHeight, 0, 1 }. - * Used to convert unnormalized texcoords to normalized texcoords. - */ - { - const int unit = (int) state[2]; - const struct gl_texture_object *texObj - = ctx->Texture.Unit[unit]._Current; - if (texObj) { - struct gl_texture_image *texImage = texObj->Image[0][0]; - ASSIGN_4V(value, - (GLfloat) (1.0 / texImage->Width), - (GLfloat) (1.0 / texImage->Height), - 0.0f, 1.0f); - } - } - return; - case STATE_FOG_PARAMS_OPTIMIZED: /* for simpler per-vertex/pixel fog calcs. POW (for EXP/EXP2 fog) * might be more expensive than EX2 on some hw, plus it needs @@ -709,8 +691,6 @@ _mesa_program_state_flags(const gl_state_index state[STATE_LENGTH]) case STATE_NORMAL_SCALE: return _NEW_MODELVIEW; - case STATE_TEXRECT_SCALE: - return _NEW_TEXTURE; case STATE_FOG_PARAMS_OPTIMIZED: return _NEW_FOG; case STATE_POINT_SIZE_CLAMPED: @@ -905,9 +885,6 @@ append_token(char *dst, gl_state_index k) case STATE_NORMAL_SCALE: append(dst, "normalScale"); break; - case STATE_TEXRECT_SCALE: - append(dst, "texrectScale"); - break; case STATE_FOG_PARAMS_OPTIMIZED: append(dst, "fogParamsOptimized"); break; diff --git a/src/mesa/program/prog_statevars.h b/src/mesa/program/prog_statevars.h index 7fecb37212d..3fdb413c421 100644 --- a/src/mesa/program/prog_statevars.h +++ b/src/mesa/program/prog_statevars.h @@ -117,7 +117,6 @@ typedef enum gl_state_index_ { STATE_CURRENT_ATTRIB, /* ctx->Current vertex attrib value */ STATE_CURRENT_ATTRIB_MAYBE_VP_CLAMPED, /* ctx->Current vertex attrib value after passthrough vertex processing */ STATE_NORMAL_SCALE, - STATE_TEXRECT_SCALE, STATE_FOG_PARAMS_OPTIMIZED, /* for faster fog calc */ STATE_POINT_SIZE_CLAMPED, /* includes implementation dependent size clamp */ STATE_LIGHT_SPOT_DIR_NORMALIZED, /* pre-normalized spot dir */ |