diff options
author | Brian Paul <[email protected]> | 2010-11-05 08:51:53 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-11-05 08:51:53 -0600 |
commit | 55c5408ad049423597cd274e7abcd2d91a16ead3 (patch) | |
tree | 6fab783074c6b6be6660e2ed2c50652ed4077b7d /src | |
parent | e8d6b2793ff3907d3646eeaceaa00e2a04728e67 (diff) |
gallivm: add const qualifiers, fix comment string
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 897b09ff22b..9f21e6d5e6c 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -1178,9 +1178,8 @@ emit_declaration( const struct tgsi_full_declaration *decl) { LLVMTypeRef vec_type = bld->base.vec_type; - - unsigned first = decl->Range.First; - unsigned last = decl->Range.Last; + const unsigned first = decl->Range.First; + const unsigned last = decl->Range.Last; unsigned idx, i; for (idx = first; idx <= last; ++idx) { @@ -1193,7 +1192,8 @@ emit_declaration( LLVMValueRef array_size = LLVMConstInt(LLVMInt32Type(), last*4 + 4, 0); bld->temps_array = lp_build_array_alloca(bld->base.builder, - vec_type, array_size, "temparray"); + vec_type, array_size, + "temporary"); idx = last; } else { for (i = 0; i < NUM_CHANNELS; i++) |