mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 08:40:29 +01:00
llvmpipe: Use single precision divide for one over area computation.
This commit is contained in:
parent
4b20ad7559
commit
3deca2e284
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,7 @@ do_triangle_ccw(struct lp_setup_context *setup,
|
|||
info.dx20 = info.v2[0][0] - info.v0[0][0];
|
||||
info.dy01 = info.v0[0][1] - info.v1[0][1];
|
||||
info.dy20 = info.v2[0][1] - info.v0[0][1];
|
||||
info.oneoverarea = 1.0 / (info.dx01 * info.dy20 - info.dx20 * info.dy01);
|
||||
info.oneoverarea = 1.0f / (info.dx01 * info.dy20 - info.dx20 * info.dy01);
|
||||
info.frontfacing = frontfacing;
|
||||
|
||||
/* Setup parameter interpolants:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue