mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Initialize the temp count for sm1.
This commit is contained in:
parent
7cb5a7bebc
commit
20b76f87bf
Notes:
Henri Verbeet
2025-04-02 19:42:10 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1414
@ -8676,6 +8676,10 @@ static void sm1_generate_vsir(struct hlsl_ctx *ctx, struct hlsl_ir_function_decl
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
program->temp_count = allocate_temp_registers(ctx, entry_func);
|
||||||
|
if (ctx->result)
|
||||||
|
return;
|
||||||
|
|
||||||
generate_vsir_signature(ctx, program, entry_func);
|
generate_vsir_signature(ctx, program, entry_func);
|
||||||
|
|
||||||
hlsl_block_init(&block);
|
hlsl_block_init(&block);
|
||||||
@ -12834,7 +12838,6 @@ int hlsl_emit_bytecode(struct hlsl_ctx *ctx, struct hlsl_ir_function_decl *entry
|
|||||||
if (profile->major_version < 4)
|
if (profile->major_version < 4)
|
||||||
{
|
{
|
||||||
mark_indexable_vars(ctx, entry_func);
|
mark_indexable_vars(ctx, entry_func);
|
||||||
allocate_temp_registers(ctx, entry_func);
|
|
||||||
allocate_const_registers(ctx, entry_func);
|
allocate_const_registers(ctx, entry_func);
|
||||||
sort_uniforms_by_bind_count(ctx, HLSL_REGSET_SAMPLERS);
|
sort_uniforms_by_bind_count(ctx, HLSL_REGSET_SAMPLERS);
|
||||||
allocate_objects(ctx, entry_func, HLSL_REGSET_SAMPLERS);
|
allocate_objects(ctx, entry_func, HLSL_REGSET_SAMPLERS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user