mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 13:00:22 +01:00
pan/mdg: Add is_ssa helper
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Italo Nicola <italonicola@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23769>
This commit is contained in:
parent
50449167d5
commit
080a1a4cc4
1 changed files with 6 additions and 0 deletions
|
|
@ -462,6 +462,12 @@ make_compiler_temp_reg(compiler_context *ctx)
|
|||
return ((ctx->func->impl->reg_alloc + ctx->temp_alloc++) << 1) | PAN_IS_REG;
|
||||
}
|
||||
|
||||
static bool
|
||||
mir_is_ssa(unsigned index)
|
||||
{
|
||||
return (index < SSA_FIXED_MINIMUM) && !(index & PAN_IS_REG);
|
||||
}
|
||||
|
||||
static inline unsigned
|
||||
nir_ssa_index(nir_ssa_def *ssa)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue