dzn: Drop useless while(link_mask != 0)

That's not a `do {} while();`, just a simple `while() {}`, the second
while statement is a NOP.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17140>
This commit is contained in:
Boris Brezillon 2022-06-17 19:43:53 +02:00 committed by Marge Bot
parent 31357f3cf4
commit b886619313
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ dzn_graphics_pipeline_compile_shaders(struct dzn_device *device,
dxil_spirv_nir_link(stages[stage].nir,
prev_stage != MESA_SHADER_NONE ?
stages[prev_stage].nir : NULL);
} while (link_mask != 0);
}
if (stages[MESA_SHADER_VERTEX].nir) {
/* Now, declare one D3D12_INPUT_ELEMENT_DESC per VS input variable, so