summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-08-11 15:11:12 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-08-11 15:14:10 +0100
commitf8533482f4a9b5ee7107f4e653d4ebf99ac63e2e (patch)
tree6edb575ab6e22539d10dfec3cdc12c3b646d0250 /src/gallium
parent66f57235d5e507b17f3cbf1329a803337ca08666 (diff)
gallivm: Use unsigned shift in lp_build_minify.
Texture dimensions are unsigned.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 955d328953..665b010ece 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;
}