nir: Add unsigned upper bound for TCS load_invocation_id.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9201>
This commit is contained in:
parent
9fbfafb57a
commit
8ebb8d31af
|
@ -1305,6 +1305,12 @@ nir_unsigned_upper_bound(nir_shader *shader, struct hash_table *range_ht,
|
|||
config->max_work_group_count[scalar.comp]) - 1u;
|
||||
}
|
||||
break;
|
||||
case nir_intrinsic_load_invocation_id:
|
||||
if (shader->info.stage == MESA_SHADER_TESS_CTRL)
|
||||
res = shader->info.tess.tcs_vertices_out
|
||||
? (shader->info.tess.tcs_vertices_out - 1)
|
||||
: 511; /* Generous maximum output patch size of 512 */
|
||||
break;
|
||||
case nir_intrinsic_load_subgroup_invocation:
|
||||
case nir_intrinsic_first_invocation:
|
||||
case nir_intrinsic_mbcnt_amd:
|
||||
|
|
Loading…
Reference in New Issue