summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_sample.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-04-06 22:49:33 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-04-06 22:52:33 +0100
commit728741a3bd27a3aaab50393665d25776ad06fcb3 (patch)
treecf871d744a2a1af47abe987af0e44f144b2e2a15 /src/gallium/auxiliary/gallivm/lp_bld_sample.c
parent306835cc0fbdd7bf46b8c703f6659d1431f86ff9 (diff)
gallivm: Fallback to calling util_format_description::fetch_float for any format we can't code LLVM IR directly.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_sample.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
index bb76ad4c6b..0744be6b41 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
@@ -157,9 +157,10 @@ lp_build_gather(LLVMBuilderRef builder,
/**
- * Compute the offset of a pixel.
+ * Compute the offset of a pixel block.
*
- * x, y, z, y_stride, z_stride are vectors
+ * x, y, z, y_stride, z_stride are vectors, and they refer to pixel blocks, as
+ * per format description, and not individual pixels.
*/
LLVMValueRef
lp_build_sample_offset(struct lp_build_context *bld,