spirv: Remove view_index_is_input
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

The last user was removed.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38793>
This commit is contained in:
Connor Abbott 2025-12-03 12:53:35 -05:00 committed by Marge Bot
parent 63a38b945d
commit d5498240ac
2 changed files with 2 additions and 11 deletions

View file

@ -56,10 +56,6 @@ enum nir_spirv_execution_environment {
struct spirv_to_nir_options { struct spirv_to_nir_options {
enum nir_spirv_execution_environment environment; enum nir_spirv_execution_environment environment;
/* Whether to keep ViewIndex as an input instead of rewriting to a sysval.
*/
bool view_index_is_input;
/* Create a nir library. */ /* Create a nir library. */
bool create_library; bool create_library;

View file

@ -1106,13 +1106,8 @@ vtn_get_builtin_location(struct vtn_builder *b,
set_mode_system_value(b, mode); set_mode_system_value(b, mode);
break; break;
case SpvBuiltInViewIndex: case SpvBuiltInViewIndex:
if (b->options && b->options->view_index_is_input) {
*location = VARYING_SLOT_VIEW_INDEX;
vtn_assert(*mode == nir_var_shader_in);
} else {
*location = SYSTEM_VALUE_VIEW_INDEX; *location = SYSTEM_VALUE_VIEW_INDEX;
set_mode_system_value(b, mode); set_mode_system_value(b, mode);
}
break; break;
case SpvBuiltInSubgroupEqMask: case SpvBuiltInSubgroupEqMask:
*location = SYSTEM_VALUE_SUBGROUP_EQ_MASK, *location = SYSTEM_VALUE_SUBGROUP_EQ_MASK,