summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2008-12-18 18:06:38 -0700
committerBrian Paul <brianp@vmware.com>2008-12-18 18:08:32 -0700
commit59a168d5c9b5f478e4e8bedcd8522e359e98987e (patch)
treef206b36853a08bef087ddae00e6388e90c092d8d /src/gallium/auxiliary/tgsi/tgsi_scan.h
parent78a204f507f966d12ecd3931a51a85763c66ddb3 (diff)
tgsi: scan for additional info: uses_fogcoord, uses_frontfacing
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.h')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h
index 5cb6efb343..2c1a75bc81 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
@@ -41,7 +41,6 @@ struct tgsi_shader_info
{
uint num_tokens;
- /* XXX eventually remove the corresponding fields from pipe_shader_state: */
ubyte num_inputs;
ubyte num_outputs;
ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS]; /**< TGSI_SEMANTIC_x */
@@ -59,6 +58,8 @@ struct tgsi_shader_info
boolean writes_z; /**< does fragment shader write Z value? */
boolean uses_kill; /**< KIL or KILP instruction used? */
+ boolean uses_fogcoord; /**< fragment shader uses fog coord? */
+ boolean uses_frontfacing; /**< fragment shader uses front/back-face flag? */
};