gallivm: Use unsigned shift in lp_build_minify.

Texture dimensions are unsigned.
This commit is contained in:
José Fonseca 2010-08-11 15:11:12 +01:00
parent 66f57235d5
commit f8533482f4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}