mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-17 10:40:30 +01:00
gallivm: Use unsigned shift in lp_build_minify.
Texture dimensions are unsigned.
This commit is contained in:
parent
66f57235d5
commit
f8533482f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue