diff options
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_interp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_interp.c b/src/gallium/drivers/llvmpipe/lp_bld_interp.c index 0608ab0a2a7..0d51ccb0349 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_interp.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_interp.c @@ -239,7 +239,10 @@ coeffs_init(struct lp_build_interp_soa_context *bld, * Compute the attrib values on the upper-left corner of each quad. */ - a = LLVMBuildFAdd(builder, a, dadq2, ""); + if (interp != LP_INTERP_CONSTANT && + interp != LP_INTERP_FACING) { + a = LLVMBuildFAdd(builder, a, dadq2, ""); + } #if PERSPECTIVE_DIVIDE_PER_QUAD /* |