vkd3d-shader/hlsl: Sort only uniforms by name in the sm1 backend.

This commit is contained in:
Zebediah Figura 2023-02-23 23:27:29 -06:00 committed by Alexandre Julliard
parent 8ed7437708
commit 98e2461392
Notes: Alexandre Julliard 2023-04-18 22:34:49 +02:00
Approved-by: Matteo Bruni (@Mystral)
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/152

View File

@ -302,7 +302,10 @@ static void sm1_sort_externs(struct hlsl_ctx *ctx)
struct hlsl_ir_var *var, *next;
LIST_FOR_EACH_ENTRY_SAFE(var, next, &ctx->extern_vars, struct hlsl_ir_var, extern_entry)
sm1_sort_extern(&sorted, var);
{
if (var->is_uniform)
sm1_sort_extern(&sorted, var);
}
list_move_tail(&ctx->extern_vars, &sorted);
}