From: Brian Date: Tue, 18 Sep 2007 18:50:20 +0000 (-0600) Subject: additional comments for tri_persp_coeff() X-Git-Tag: 062012170305~17580^2~390^2~4099 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72b0a57cfa99e55ad6e1b4ddcd486c202ee1f22d;p=profile%2Fivi%2Fmesa.git additional comments for tri_persp_coeff() --- diff --git a/src/mesa/pipe/softpipe/sp_prim_setup.c b/src/mesa/pipe/softpipe/sp_prim_setup.c index c64a4e9..d0baf07 100644 --- a/src/mesa/pipe/softpipe/sp_prim_setup.c +++ b/src/mesa/pipe/softpipe/sp_prim_setup.c @@ -428,6 +428,10 @@ static void tri_linear_coeff( struct setup_stage *setup, /** * Compute a0, dadx and dady for a perspective-corrected interpolant, * for a triangle. + * We basically multiply the vertex value by 1/w before computing + * the plane coefficients (a0, dadx, dady). + * Later, when we compute the value at a particular fragment position we'll + * divide the interpolated value by the interpolated W at that fragment. */ static void tri_persp_coeff( struct setup_stage *setup, unsigned slot,