mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Preserve doubles in intrinsic_determinant().
This commit is contained in:
parent
e146cc4c8e
commit
1aa857735f
Notes:
Henri Verbeet
2024-09-12 18:57:51 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1064
@ -3735,15 +3735,14 @@ static bool intrinsic_determinant(struct hlsl_ctx *ctx,
|
||||
return false;
|
||||
}
|
||||
|
||||
dim = min(type->dimx, type->dimy);
|
||||
if (dim == 1)
|
||||
{
|
||||
if (!(arg = intrinsic_float_convert_arg(ctx, params, arg, loc)))
|
||||
return false;
|
||||
return hlsl_add_load_component(ctx, params->instrs, arg, 0, loc);
|
||||
}
|
||||
|
||||
typename = type->e.numeric.type == HLSL_TYPE_HALF ? "half" : "float";
|
||||
dim = min(type->dimx, type->dimy);
|
||||
if (dim == 1)
|
||||
return hlsl_add_load_component(ctx, params->instrs, arg, 0, loc);
|
||||
|
||||
typename = hlsl_get_scalar_type(ctx, arg->data_type->e.numeric.type)->name;
|
||||
template = templates[dim];
|
||||
|
||||
switch (dim)
|
||||
|
Loading…
Reference in New Issue
Block a user