glsl: remove ir_state_slot::swizzle

Same story as with the NIR counterpart in the previous commit.

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22620>
This commit is contained in:
Erik Faye-Lund
2023-04-25 19:44:38 +02:00
committed by Marge Bot
parent 4e8b532db3
commit b9ba2c272a
3 changed files with 0 additions and 3 deletions

View File

@@ -683,7 +683,6 @@ builtin_variable_generator::add_uniform(const glsl_type *type,
if (type->is_array())
slots->tokens[1] = a;
slots->swizzle = element->swizzle;
slots++;
}
}

View File

@@ -394,7 +394,6 @@ depth_layout_string(ir_depth_layout layout);
*/
struct ir_state_slot {
gl_state_index16 tokens[STATE_LENGTH];
int swizzle;
};

View File

@@ -490,7 +490,6 @@ lower_blend_equation_advanced(struct gl_linked_shader *sh, bool coherent)
mode->data.how_declared = ir_var_hidden;
mode->allocate_state_slots(1);
ir_state_slot *slot0 = &mode->get_state_slots()[0];
slot0->swizzle = SWIZZLE_XXXX;
slot0->tokens[0] = STATE_ADVANCED_BLENDING_MODE;
for (int i = 1; i < STATE_LENGTH; i++)
slot0->tokens[i] = 0;