mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
committed by
Alexandre Julliard
parent
5c9fa15d4d
commit
62628dd90d
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user