gallivm: Use unsigned shift in lp_build_minify.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 11 Aug 2010 14:11:12 +0000 (15:11 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 11 Aug 2010 14:14:10 +0000 (15:14 +0100)
Texture dimensions are unsigned.

src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c

index 955d328953447028531a290a9ebcb484e7a69e26..665b010ecec88d96dfd94444814b5bc4a3475d1b 100644 (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;
 }