mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/glsl: Resolve SSA values.
Since commit eaebef4265
we may receive
vsir generated from HLSL sources, which typically contains SSA values.
We could previously receive vsir with SSA values as well, but HLSL
sources would go through d3dbc/tpf as an intermediate step, making the
resulting vsir much less likely to contain SSA values.
This commit is contained in:
Notes:
Henri Verbeet
2025-08-13 16:27:58 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1679
@@ -2444,6 +2444,9 @@ int glsl_compile(struct vsir_program *program, uint64_t config_flags,
|
|||||||
if ((ret = vsir_program_transform(program, config_flags, compile_info, message_context)) < 0)
|
if ((ret = vsir_program_transform(program, config_flags, compile_info, message_context)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if ((ret = vsir_allocate_temp_registers(program, message_context)) < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
VKD3D_ASSERT(program->normalisation_level == VSIR_NORMALISED_SM6);
|
VKD3D_ASSERT(program->normalisation_level == VSIR_NORMALISED_SM6);
|
||||||
VKD3D_ASSERT(program->has_descriptor_info);
|
VKD3D_ASSERT(program->has_descriptor_info);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user