From cbfc92c04b98f1c2e534055fd0e3f82ef539c3c4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 14 Nov 2017 10:51:10 -0700 Subject: [PATCH] svga: s/unsigned/enum tgsi_texture_type/ Reviewed-by: Charmaine Lee --- src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c index 5fc93e29c60..c718eae8f3a 100644 --- a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c +++ b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c @@ -5043,7 +5043,7 @@ is_valid_tex_instruction(struct svga_shader_emitter_v10 *emit, const struct tgsi_full_instruction *inst) { const unsigned unit = inst->Src[1].Register.Index; - const unsigned target = inst->Texture.Texture; + const enum tgsi_texture_type target = inst->Texture.Texture; boolean valid = TRUE; if (tgsi_is_shadow_target(target) && @@ -5075,7 +5075,7 @@ emit_tex(struct svga_shader_emitter_v10 *emit, const struct tgsi_full_instruction *inst) { const uint unit = inst->Src[1].Register.Index; - unsigned target = inst->Texture.Texture; + const enum tgsi_texture_type target = inst->Texture.Texture; unsigned opcode; struct tgsi_full_src_register coord; int offsets[3]; @@ -5125,7 +5125,7 @@ emit_txp(struct svga_shader_emitter_v10 *emit, const struct tgsi_full_instruction *inst) { const uint unit = inst->Src[1].Register.Index; - unsigned target = inst->Texture.Texture; + const enum tgsi_texture_type target = inst->Texture.Texture; unsigned opcode; int offsets[3]; unsigned tmp = get_temp_index(emit); @@ -5187,7 +5187,7 @@ emit_txd(struct svga_shader_emitter_v10 *emit, const struct tgsi_full_instruction *inst) { const uint unit = inst->Src[3].Register.Index; - unsigned target = inst->Texture.Texture; + const enum tgsi_texture_type target = inst->Texture.Texture; int offsets[3]; struct tgsi_full_src_register coord; struct tex_swizzle_info swz_info; @@ -5277,7 +5277,7 @@ static boolean emit_txl_txb(struct svga_shader_emitter_v10 *emit, const struct tgsi_full_instruction *inst) { - unsigned target = inst->Texture.Texture; + const enum tgsi_texture_type target = inst->Texture.Texture; unsigned opcode, unit; int offsets[3]; struct tgsi_full_src_register coord, lod_bias; -- 2.30.2