diff options
author | Brian Paul <[email protected]> | 2014-01-31 17:28:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-02 06:52:36 -0700 |
commit | c20b48c48e81159a43941966e35f90f96226d6fb (patch) | |
tree | 097dc71fc50f497ec4230a5927d94ef991599839 /src | |
parent | c6d94648cf275472736c15a41db1b91e10a85b87 (diff) |
gallivm: add a few const qualifiers
Trivial.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c index 2ad15be7bb1..51cb54ccee3 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.c @@ -54,7 +54,7 @@ unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base) unsigned lp_bld_tgsi_add_instruction( struct lp_build_tgsi_context * bld_base, - struct tgsi_full_instruction *inst_to_add) + const struct tgsi_full_instruction *inst_to_add) { if (bld_base->num_instructions == bld_base->max_instructions) { @@ -469,8 +469,8 @@ lp_build_tgsi_llvm( } while (bld_base->pc != -1) { - struct tgsi_full_instruction *instr = bld_base->instructions + - bld_base->pc; + const struct tgsi_full_instruction *instr = + bld_base->instructions + bld_base->pc; const struct tgsi_opcode_info *opcode_info = tgsi_get_opcode_info(instr->Instruction.Opcode); if (!lp_build_tgsi_inst_llvm(bld_base, instr)) { diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h index 4f988b8fa4d..0b981346999 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi.h @@ -317,7 +317,7 @@ unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base); unsigned lp_bld_tgsi_add_instruction( struct lp_build_tgsi_context * bld_base, - struct tgsi_full_instruction *inst_to_add); + const struct tgsi_full_instruction *inst_to_add); struct lp_build_tgsi_context; |