projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad22886
)
glsl: Mark float constants as such
author
Iago Toral Quiroga
<itoral@igalia.com>
Fri, 19 Feb 2016 08:18:41 +0000
(09:18 +0100)
committer
Iago Toral Quiroga
<itoral@igalia.com>
Fri, 19 Feb 2016 13:16:05 +0000
(14:16 +0100)
So we don't generate double to float conversion code
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ast_function.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/ast_function.cpp
b/src/compiler/glsl/ast_function.cpp
index 238993e24d033baf840e6c61ab98647966588aaa..2ed61de0b9fde59f1b74cd2eadbe0f4f95820806 100644
(file)
--- a/
src/compiler/glsl/ast_function.cpp
+++ b/
src/compiler/glsl/ast_function.cpp
@@
-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.0
f
;
+ ident.f[1] = 0.0
f
;
+ ident.f[2] = 0.0
f
;
+ ident.f[3] = 0.0
f
;
- ident.f[col] = 1.0;
+ ident.f[col] = 1.0
f
;
ir_rvalue *const rhs = new(ctx) ir_constant(col_type, &ident);