diff options
author | Brian Paul <[email protected]> | 2008-04-16 09:04:39 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-04-16 16:53:43 -0600 |
commit | 302daeb2ec62c59bd28d0c53cdc0fb07dc9d0f58 (patch) | |
tree | 11601dfc6de3989abbda0f71488bdbe618dbc81c /src/mesa/shader/prog_statevars.c | |
parent | 3a765bbe00940c4dffce72b659f625d97ea17971 (diff) |
mesa: added internal post color matrix scale/bias vars
Diffstat (limited to 'src/mesa/shader/prog_statevars.c')
-rw-r--r-- | src/mesa/shader/prog_statevars.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_statevars.c b/src/mesa/shader/prog_statevars.c index 6cc490bc773..45352d30b5c 100644 --- a/src/mesa/shader/prog_statevars.c +++ b/src/mesa/shader/prog_statevars.c @@ -450,6 +450,12 @@ _mesa_fetch_state(GLcontext *ctx, const gl_state_index state[], value[2] = ctx->Pixel.BlueBias; value[3] = ctx->Pixel.AlphaBias; break; + case STATE_PCM_SCALE: + COPY_4V(value, ctx->Pixel.PostColorMatrixScale); + break; + case STATE_PCM_BIAS: + COPY_4V(value, ctx->Pixel.PostColorMatrixBias); + break; default: /* unknown state indexes are silently ignored * should be handled by the driver. @@ -697,6 +703,12 @@ append_token(char *dst, gl_state_index k) case STATE_PT_BIAS: append(dst, "PTbias"); break; + case STATE_PCM_SCALE: + append(dst, "PCMscale"); + break; + case STATE_PCM_BIAS: + append(dst, "PCMbias"); + break; default: ; } |