mesa: remove STATE_INTERNAL
Let's flatten the tokens to generate optimal code for fetch_state. There was only one name conflict: STATE_NORMAL_SCALE was used both as internal and non-internal. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8183>
This commit is contained in:
@@ -489,9 +489,8 @@ lower_blend_equation_advanced(struct gl_linked_shader *sh, bool coherent)
|
||||
mode->allocate_state_slots(1);
|
||||
ir_state_slot *slot0 = &mode->get_state_slots()[0];
|
||||
slot0->swizzle = SWIZZLE_XXXX;
|
||||
slot0->tokens[0] = STATE_INTERNAL;
|
||||
slot0->tokens[1] = STATE_ADVANCED_BLENDING_MODE;
|
||||
for (int i = 2; i < STATE_LENGTH; i++)
|
||||
slot0->tokens[0] = STATE_ADVANCED_BLENDING_MODE;
|
||||
for (int i = 1; i < STATE_LENGTH; i++)
|
||||
slot0->tokens[i] = 0;
|
||||
|
||||
sh->ir->push_head(fb);
|
||||
|
Reference in New Issue
Block a user