mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
spirv: Remove view_index_is_input
The last user was removed. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38793>
This commit is contained in:
parent
63a38b945d
commit
d5498240ac
2 changed files with 2 additions and 11 deletions
|
|
@ -56,10 +56,6 @@ enum nir_spirv_execution_environment {
|
|||
struct spirv_to_nir_options {
|
||||
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. */
|
||||
bool create_library;
|
||||
|
||||
|
|
|
|||
|
|
@ -1106,13 +1106,8 @@ vtn_get_builtin_location(struct vtn_builder *b,
|
|||
set_mode_system_value(b, mode);
|
||||
break;
|
||||
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;
|
||||
set_mode_system_value(b, mode);
|
||||
}
|
||||
*location = SYSTEM_VALUE_VIEW_INDEX;
|
||||
set_mode_system_value(b, mode);
|
||||
break;
|
||||
case SpvBuiltInSubgroupEqMask:
|
||||
*location = SYSTEM_VALUE_SUBGROUP_EQ_MASK,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue