From 166e9421c814d859f849b2aa476380725e74b408 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 25 Mar 2011 02:59:07 +0000 Subject: svga: Wip for passing depth in a texcoord TODO: Can we pass this as the same texcoord as fog? --- src/gallium/drivers/svga/svga_tgsi_emit.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/drivers/svga/svga_tgsi_emit.h') diff --git a/src/gallium/drivers/svga/svga_tgsi_emit.h b/src/gallium/drivers/svga/svga_tgsi_emit.h index 63ef7f867a6..21bb8da44f8 100644 --- a/src/gallium/drivers/svga/svga_tgsi_emit.h +++ b/src/gallium/drivers/svga/svga_tgsi_emit.h @@ -79,6 +79,7 @@ struct svga_shader_emitter int internal_frontface_idx; int ps30_input_count; + int vs30_output_count; int dynamic_branching_level; @@ -99,9 +100,15 @@ struct svga_shader_emitter struct src_register input_map[PIPE_MAX_ATTRIBS]; SVGA3dShaderDestToken output_map[PIPE_MAX_ATTRIBS]; + boolean ps_reads_pos; + struct src_register ps_true_pos; + struct src_register ps_depth_pos; + SVGA3dShaderDestToken ps_temp_pos; + struct src_register imm_0055; SVGA3dShaderDestToken temp_pos; SVGA3dShaderDestToken true_pos; + SVGA3dShaderDestToken depth_pos; SVGA3dShaderDestToken temp_col[PIPE_MAX_COLOR_BUFS]; SVGA3dShaderDestToken true_col[PIPE_MAX_COLOR_BUFS]; -- cgit v1.2.3