summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_format.h
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-01-10 11:16:40 -0800
committerRoland Scheidegger <sroland@vmware.com>2013-01-10 18:02:01 -0800
commit31884946b5d00ba7e2678ed6641a4ba0d48e3951 (patch)
tree543500b47b65daba8999d5e94a083f9fdab4c8bf /src/gallium/auxiliary/gallivm/lp_bld_format.h
parent5eeedb852b8a422f31d4d4f018187020c713fffa (diff)
downloadexternal_mesa3d-31884946b5d00ba7e2678ed6641a4ba0d48e3951.zip
external_mesa3d-31884946b5d00ba7e2678ed6641a4ba0d48e3951.tar.gz
external_mesa3d-31884946b5d00ba7e2678ed6641a4ba0d48e3951.tar.bz2
gallivm: more integer texture format fetch fixes
Change the texel type to int/uint instead of float throughout the sampling code which makes it easier to catch errors (as llvm will complain about wrong types if we mistakenly treat these values as real floats somewhere). This should also get things like e.g. sampler swizzles (for unused channels) right. This fixes piglit texture_integer_glsl130 test. Border color not working (crashing) yet. (These formats are not exposed yet in llvmpipe.) v2: couple cleanups according to José's comments Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_format.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format.h b/src/gallium/auxiliary/gallivm/lp_bld_format.h
index 3608a68..8fb173b 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_format.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_format.h
@@ -93,7 +93,7 @@ lp_build_unpack_rgba_soa(struct gallivm_state *gallivm,
LLVMValueRef rgba_out[4]);
void
-lp_build_rgba8_to_f32_soa(struct gallivm_state *gallivm,
+lp_build_rgba8_to_fi32_soa(struct gallivm_state *gallivm,
struct lp_type dst_type,
LLVMValueRef packed,
LLVMValueRef *rgba);