diff options
author | Konstantin Kharlamov <[email protected]> | 2017-12-29 08:32:28 +0300 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-07-17 14:47:37 -0400 |
commit | 77ca550224515516c780c0f0534d667beab0e891 (patch) | |
tree | 28c7eb83456bd25731779c5602ef6f03f623ebff /src/gallium/drivers/r600/sb | |
parent | 9b379591c9d2ddc4082df367606642fedbc40fd2 (diff) |
r600g: constify some variables
Just a nice hint for both peoples and compilers.
Signed-off-by: Konstantin Kharlamov <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/sb')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_expr.cpp b/src/gallium/drivers/r600/sb/sb_expr.cpp index ad798453bc1..05674ff24b8 100644 --- a/src/gallium/drivers/r600/sb/sb_expr.cpp +++ b/src/gallium/drivers/r600/sb/sb_expr.cpp @@ -332,7 +332,7 @@ void expr_handler::apply_alu_src_mod(const bc_alu &bc, unsigned src, } void expr_handler::apply_alu_dst_mod(const bc_alu &bc, literal &v) { - float omod_coeff[] = {2.0f, 4.0, 0.5f}; + const float omod_coeff[] = {2.0f, 4.0, 0.5f}; if (bc.omod) v = v.f * omod_coeff[bc.omod - 1]; |