From: José Fonseca Date: Wed, 11 Aug 2010 14:11:12 +0000 (+0100) Subject: gallivm: Use unsigned shift in lp_build_minify. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8533482f4a9b5ee7107f4e653d4ebf99ac63e2e;p=mesa.git gallivm: Use unsigned shift in lp_build_minify. Texture dimensions are unsigned. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c index 955d3289534..665b010ecec 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c @@ -811,7 +811,7 @@ lp_build_minify(struct lp_build_sample_context *bld, LLVMValueRef base_size, LLVMValueRef level) { - LLVMValueRef size = LLVMBuildAShr(bld->builder, base_size, level, "minify"); + LLVMValueRef size = LLVMBuildLShr(bld->builder, base_size, level, "minify"); size = lp_build_max(&bld->int_coord_bld, size, bld->int_coord_bld.one); return size; }