mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
glsl: Mark float constants as such
So we don't generate double to float conversion code Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
ad22886ef1
commit
d1617b4088
1 changed files with 5 additions and 5 deletions
|
|
@ -1484,12 +1484,12 @@ emit_inline_matrix_constructor(const glsl_type *type,
|
|||
for (/* empty */; col < var->type->matrix_columns; col++) {
|
||||
ir_constant_data ident;
|
||||
|
||||
ident.f[0] = 0.0;
|
||||
ident.f[1] = 0.0;
|
||||
ident.f[2] = 0.0;
|
||||
ident.f[3] = 0.0;
|
||||
ident.f[0] = 0.0f;
|
||||
ident.f[1] = 0.0f;
|
||||
ident.f[2] = 0.0f;
|
||||
ident.f[3] = 0.0f;
|
||||
|
||||
ident.f[col] = 1.0;
|
||||
ident.f[col] = 1.0f;
|
||||
|
||||
ir_rvalue *const rhs = new(ctx) ir_constant(col_type, &ident);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue