mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
llvmpipe: Avoid adding floating point zero to flat inputs.
Which could clobber integer inputs, if the addition is not optimized away (e.g., if optimizations are disabled for debugging purposes).
This commit is contained in:
parent
00eb74b275
commit
3f7a5ffac7
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue