mesa: add missing state dependencies for various tracked constants
This commit is contained in:
@@ -488,6 +488,10 @@ _mesa_fetch_state(GLcontext *ctx, const gl_state_index state[],
|
|||||||
case STATE_PCM_BIAS:
|
case STATE_PCM_BIAS:
|
||||||
COPY_4V(value, ctx->Pixel.PostColorMatrixBias);
|
COPY_4V(value, ctx->Pixel.PostColorMatrixBias);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* XXX: make sure new tokens added here are also handled in the
|
||||||
|
* _mesa_program_state_flags() switch, below.
|
||||||
|
*/
|
||||||
default:
|
default:
|
||||||
/* unknown state indexes are silently ignored
|
/* unknown state indexes are silently ignored
|
||||||
* should be handled by the driver.
|
* should be handled by the driver.
|
||||||
@@ -561,10 +565,26 @@ _mesa_program_state_flags(const gl_state_index state[STATE_LENGTH])
|
|||||||
|
|
||||||
case STATE_INTERNAL:
|
case STATE_INTERNAL:
|
||||||
switch (state[1]) {
|
switch (state[1]) {
|
||||||
|
|
||||||
|
case STATE_NORMAL_SCALE:
|
||||||
|
return _NEW_MODELVIEW;
|
||||||
|
|
||||||
case STATE_TEXRECT_SCALE:
|
case STATE_TEXRECT_SCALE:
|
||||||
return _NEW_TEXTURE;
|
return _NEW_TEXTURE;
|
||||||
case STATE_FOG_PARAMS_OPTIMIZED:
|
case STATE_FOG_PARAMS_OPTIMIZED:
|
||||||
return _NEW_FOG;
|
return _NEW_FOG;
|
||||||
|
case STATE_LIGHT_SPOT_DIR_NORMALIZED:
|
||||||
|
case STATE_LIGHT_POSITION:
|
||||||
|
case STATE_LIGHT_POSITION_NORMALIZED:
|
||||||
|
case STATE_LIGHT_HALF_VECTOR:
|
||||||
|
return _NEW_LIGHT;
|
||||||
|
|
||||||
|
case STATE_PT_SCALE:
|
||||||
|
case STATE_PT_BIAS:
|
||||||
|
case STATE_PCM_SCALE:
|
||||||
|
case STATE_PCM_BIAS:
|
||||||
|
return _NEW_PIXEL;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* unknown state indexes are silently ignored and
|
/* unknown state indexes are silently ignored and
|
||||||
* no flag set, since it is handled by the driver.
|
* no flag set, since it is handled by the driver.
|
||||||
|
Reference in New Issue
Block a user