summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-08-23 04:33:32 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-08-23 23:46:28 +0200
commitad9b5b9ae9a9068be4571a406f6118b9f4382ac4 (patch)
tree238ef6445c1ae5e8b3910eeb90d5fd21f7849a10 /src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h
parentb47bde00790c4d4cef107c8cd33ed17a08415caf (diff)
downloadexternal_mesa3d-ad9b5b9ae9a9068be4571a406f6118b9f4382ac4.zip
external_mesa3d-ad9b5b9ae9a9068be4571a406f6118b9f4382ac4.tar.gz
external_mesa3d-ad9b5b9ae9a9068be4571a406f6118b9f4382ac4.tar.bz2
gallivm: fix min/mag switchover point for nearest/none mip filter
Previously, the min/mag switchover point when using nearest/none mip filter was effectively -0.5 which can't be right. Looks like new OpenGL thinks it's ok if it's always 0.0 (older versions required 0.5 in some cases), let's hope everybody else thinks that's fine too. Refactor this slightly and get the per-quad/per-pixel min/mag decision values further down to sampling, though still only the first component is used yet. While here also fix code trying to skip lod bias application etc. when mipfilter is none, as this is still needed for determining min/mag filter. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h
index 6fce971..da503d2 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_aos.h
@@ -47,7 +47,7 @@ lp_build_sample_aos(struct lp_build_sample_context *bld,
LLVMValueRef t,
LLVMValueRef r,
const LLVMValueRef *offsets,
- LLVMValueRef lod_ipart,
+ LLVMValueRef lod_positive,
LLVMValueRef lod_fpart,
LLVMValueRef ilevel0,
LLVMValueRef ilevel1,