mesa: added internal post color matrix scale/bias vars
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Apr 2008 15:04:39 +0000 (09:04 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Apr 2008 22:53:43 +0000 (16:53 -0600)
src/mesa/shader/prog_statevars.c
src/mesa/shader/prog_statevars.h

index 6cc490bc7735d909b1772bfea41b8f6ebdd1d47c..45352d30b5c91110221892b5dab7be39a01b56e1 100644 (file)
@@ -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:
       ;
    }
index 9fedcfab8af51a613e1792b23768baacc549a9c2..d12142055fcb178c2889d5183eef74f2437fbfc3 100644 (file)
@@ -111,6 +111,8 @@ typedef enum gl_state_index_ {
    STATE_SPOT_DIR_NORMALIZED,   /* pre-normalized spot dir */
    STATE_PT_SCALE,              /**< Pixel transfer RGBA scale */
    STATE_PT_BIAS,               /**< Pixel transfer RGBA bias */
+   STATE_PCM_SCALE,             /**< Post color matrix RGBA scale */
+   STATE_PCM_BIAS,              /**< Post color matrix RGBA bias */
    STATE_INTERNAL_DRIVER       /* first available state index for drivers (must be last) */
 } gl_state_index;