gallium: added uses_kill field to tgsi_shader_info

This commit is contained in:
Brian 2008-02-27 15:06:04 -07:00
parent 1c50ea2cd9
commit fb40c5a9c7
2 changed files with 4 additions and 0 deletions

View file

@ -133,5 +133,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
}
}
info->uses_kill = (info->opcode_count[TGSI_OPCODE_KIL] ||
info->opcode_count[TGSI_OPCODE_KILP]);
tgsi_parse_free (&parse);
}

View file

@ -57,6 +57,7 @@ struct tgsi_shader_info
uint opcode_count[TGSI_OPCODE_LAST]; /**< opcode histogram */
boolean writes_z; /**< does fragment shader write Z value? */
boolean uses_kill; /**< KIL or KILP instruction used? */
};