mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-09 07:40:28 +01:00
gallium: added uses_kill field to tgsi_shader_info
This commit is contained in:
parent
1c50ea2cd9
commit
fb40c5a9c7
2 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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? */
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue