diff options
author | Jakob Bornecrantz <[email protected]> | 2011-04-07 17:23:48 +0100 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-23 07:58:46 -0600 |
commit | 8bf3fb4eca5594f8348de2f8fb67bc94127f8d5a (patch) | |
tree | b1bd40991c014c08cf485b6427ce7b40a436095d /src/gallium/drivers/svga/svga_tgsi_emit.h | |
parent | 4f17830b3dda5a1727a3c87897e73b56b37613a6 (diff) |
svga: Share one texcoord between depth and fog
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi_emit.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi_emit.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_emit.h b/src/gallium/drivers/svga/svga_tgsi_emit.h index 21bb8da44f8..b1300dc8ecd 100644 --- a/src/gallium/drivers/svga/svga_tgsi_emit.h +++ b/src/gallium/drivers/svga/svga_tgsi_emit.h @@ -101,15 +101,22 @@ struct svga_shader_emitter SVGA3dShaderDestToken output_map[PIPE_MAX_ATTRIBS]; boolean ps_reads_pos; + boolean emitted_depth_fog; struct src_register ps_true_pos; struct src_register ps_depth_pos; SVGA3dShaderDestToken ps_temp_pos; + /* shared input for depth and fog */ + struct src_register ps_depth_fog; + struct src_register imm_0055; SVGA3dShaderDestToken temp_pos; SVGA3dShaderDestToken true_pos; SVGA3dShaderDestToken depth_pos; + /* shared output for depth and fog */ + SVGA3dShaderDestToken vs_depth_fog; + SVGA3dShaderDestToken temp_col[PIPE_MAX_COLOR_BUFS]; SVGA3dShaderDestToken true_col[PIPE_MAX_COLOR_BUFS]; |