summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-06-02 20:09:02 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-06-02 21:32:49 +0100
commita33b5ef7d02a45bda106065e7c927358b04fe289 (patch)
tree4c6106c9720f9ba4ae31dfc70d893dfba92dadcb /src/gallium/drivers/llvmpipe
parentfae7bee475320b98cdfaecd14f6b17a92e16bc1d (diff)
llvmpipe: Fix bad logic.
Courtesy of Vinson and coverity.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_interp.c b/src/gallium/drivers/llvmpipe/lp_bld_interp.c
index 957866e489..90d2b26f9f 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_interp.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_interp.c
@@ -262,7 +262,7 @@ attribs_update(struct lp_build_interp_soa_context *bld, int quad_index)
for(chan = 0; chan < NUM_CHANNELS; ++chan) {
if(mask & (1 << chan)) {
LLVMValueRef a = coeff_bld->undef;
- if (interp == LP_INTERP_CONSTANT &&
+ if (interp == LP_INTERP_CONSTANT ||
interp == LP_INTERP_FACING) {
a = bld->a[attrib][chan];
}