vkd3d-shader: Promote immediate scalar constants to vectors.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia
2018-09-24 10:25:17 +02:00
committed by Alexandre Julliard
parent 5c9fa15d4d
commit 62628dd90d
2 changed files with 25 additions and 2 deletions

View File

@@ -2537,8 +2537,8 @@ static uint32_t vkd3d_dxbc_compiler_emit_load_constant(struct vkd3d_dxbc_compile
if (reg->immconst_type == VKD3D_IMMCONST_SCALAR)
{
assert(component_count == 1);
values[0] = *reg->u.immconst_uint;
for (i = 0; i < component_count; ++i)
values[i] = *reg->u.immconst_uint;
}
else
{