diff options
author | Roland Scheidegger <[email protected]> | 2012-05-24 21:05:13 +0200 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-06-08 17:46:57 +0100 |
commit | dfbb18bdb58fa04ddd4cbd495299a704599ee09e (patch) | |
tree | 7724864eea1bcf1a4ebeea97fc0511108d99480f /src/gallium/auxiliary/gallivm | |
parent | 529476b5e4cd0591e0ec777b9bc2b5bec136822b (diff) |
gallivm: Fix calculating rho for 3d textures for the single-quad case
Discovered by accident, this looks like a very old typo bug.
Signed-off-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c index 2ffd9b8bfc3..d966788d74e 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c @@ -256,9 +256,8 @@ lp_build_rho(struct lp_build_sample_context *bld, rho_t = LLVMBuildExtractElement(builder, rho_vec, index1, ""); rho = lp_build_max(float_bld, rho_s, rho_t); - if (dims >= 3) { - rho_r = LLVMBuildExtractElement(builder, rho_vec, index0, ""); + rho_r = LLVMBuildExtractElement(builder, rho_vec, index2, ""); rho = lp_build_max(float_bld, rho, rho_r); } } |