diff options
author | Brian Paul <[email protected]> | 2017-07-10 14:08:36 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-07-11 08:09:14 -0600 |
commit | 9330112b3539ddb9aa565140cf23f2c3fd1583c2 (patch) | |
tree | e44c6790c7e19db9cddbebf87808e77794887df1 | |
parent | 1b5e88becde0122ebe58f8ae3a8669d4842b2623 (diff) |
svga: s/unsigned/enum tgsi_file_type/
Reviewed-by: Charmaine Lee <[email protected]>
Reviewed-by: Neha Bhende <[email protected]>
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c index 070d67f2783..cd4cab45866 100644 --- a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c +++ b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c @@ -706,7 +706,7 @@ emit_null_dst_register(struct svga_shader_emitter_v10 *emit) */ static unsigned get_temp_array_id(const struct svga_shader_emitter_v10 *emit, - unsigned file, unsigned index) + enum tgsi_file_type file, unsigned index) { if (file == TGSI_FILE_TEMPORARY) { return emit->temp_map[index].arrayId; @@ -723,7 +723,7 @@ get_temp_array_id(const struct svga_shader_emitter_v10 *emit, */ static unsigned remap_temp_index(const struct svga_shader_emitter_v10 *emit, - unsigned file, unsigned index) + enum tgsi_file_type file, unsigned index) { if (file == TGSI_FILE_TEMPORARY) { return emit->temp_map[index].index; @@ -741,7 +741,7 @@ remap_temp_index(const struct svga_shader_emitter_v10 *emit, static VGPU10OperandToken0 setup_operand0_indexing(struct svga_shader_emitter_v10 *emit, VGPU10OperandToken0 operand0, - unsigned file, + enum tgsi_file_type file, boolean indirect, boolean index2D, unsigned tempArrayID) { @@ -849,7 +849,7 @@ static void emit_dst_register(struct svga_shader_emitter_v10 *emit, const struct tgsi_full_dst_register *reg) { - unsigned file = reg->Register.File; + enum tgsi_file_type file = reg->Register.File; unsigned index = reg->Register.Index; const enum tgsi_semantic sem_name = emit->info.output_semantic_name[index]; const unsigned sem_index = emit->info.output_semantic_index[index]; @@ -967,7 +967,7 @@ static void emit_src_register(struct svga_shader_emitter_v10 *emit, const struct tgsi_full_src_register *reg) { - unsigned file = reg->Register.File; + enum tgsi_file_type file = reg->Register.File; unsigned index = reg->Register.Index; const unsigned indirect = reg->Register.Indirect; const unsigned tempArrayId = get_temp_array_id(emit, file, index); @@ -1364,7 +1364,7 @@ free_temp_indexes(struct svga_shader_emitter_v10 *emit) * Create a tgsi_full_src_register. */ static struct tgsi_full_src_register -make_src_reg(unsigned file, unsigned index) +make_src_reg(enum tgsi_file_type file, unsigned index) { struct tgsi_full_src_register reg; @@ -1413,7 +1413,7 @@ make_src_immediate_reg(unsigned index) * Create a tgsi_full_dst_register. */ static struct tgsi_full_dst_register -make_dst_reg(unsigned file, unsigned index) +make_dst_reg(enum tgsi_file_type file, unsigned index) { struct tgsi_full_dst_register reg; |