svga: rename color output variables
authorBrian Paul <brianp@vmware.com>
Fri, 17 Jan 2014 02:05:00 +0000 (18:05 -0800)
committerBrian Paul <brianp@vmware.com>
Tue, 21 Jan 2014 18:53:51 +0000 (10:53 -0800)
Just to be bit more readable.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
src/gallium/drivers/svga/svga_tgsi_emit.h
src/gallium/drivers/svga/svga_tgsi_insn.c

index 7faa275f33ea350726f668832e64841292c10adf..e0a30a5248e380bab40792a2c2c2bbb32a840730 100644 (file)
@@ -332,9 +332,9 @@ ps30_output(struct svga_shader_emitter *emit,
 
          emit->output_map[idx] = dst_register( SVGA3DREG_TEMP,
                                                emit->nr_hw_temp++ );
-         emit->temp_col[idx] = emit->output_map[idx];
-         emit->true_col[idx] = dst_register( SVGA3DREG_COLOROUT, 
-                                              semantic.Index );
+         emit->temp_color_output[idx] = emit->output_map[idx];
+         emit->true_color_output[idx] = dst_register(SVGA3DREG_COLOROUT, 
+                                                     semantic.Index);
       }
       else {
          emit->output_map[idx] = dst_register( SVGA3DREG_COLOROUT, 
index e36a9559ed8a3b04ae12ef6e3c0216dc471de9f6..28b8e694ddf3825cdba9c7039e80fe6140e94a3d 100644 (file)
@@ -119,8 +119,9 @@ struct svga_shader_emitter
    /* shared output for depth and fog */
    SVGA3dShaderDestToken vs_depth_fog;
 
-   SVGA3dShaderDestToken temp_col[PIPE_MAX_COLOR_BUFS];
-   SVGA3dShaderDestToken true_col[PIPE_MAX_COLOR_BUFS];
+   /* PS output colors */
+   SVGA3dShaderDestToken temp_color_output[PIPE_MAX_COLOR_BUFS];
+   SVGA3dShaderDestToken true_color_output[PIPE_MAX_COLOR_BUFS];
 
    SVGA3dShaderDestToken temp_psiz;
    SVGA3dShaderDestToken true_psiz;
index 086509566feb7edf2a50334916e3e02d35399d70..2143546229370abd8829d0f0dde751ca36bf3348 100644 (file)
@@ -3059,7 +3059,7 @@ emit_ps_postamble(struct svga_shader_emitter *emit)
    }
 
    for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
-      if (SVGA3dShaderGetRegType(emit->true_col[i].value) != 0) {
+      if (SVGA3dShaderGetRegType(emit->true_color_output[i].value) != 0) {
          /* Potentially override output colors with white for XOR
           * logicop workaround.
           */
@@ -3070,15 +3070,15 @@ emit_ps_postamble(struct svga_shader_emitter *emit)
 
             if (!submit_op1( emit,
                              inst_token(SVGA3DOP_MOV),
-                             emit->true_col[i],
+                             emit->true_color_output[i],
                              one ))
                return FALSE;
          }
          else {
             if (!submit_op1( emit,
                              inst_token(SVGA3DOP_MOV),
-                             emit->true_col[i],
-                             src(emit->temp_col[i]) ))
+                             emit->true_color_output[i],
+                             src(emit->temp_color_output[i]) ))
                return FALSE;
          }
       }