nir/lower_wpos_ytransform: update comment to reflect variable usage

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28462>
This commit is contained in:
Mike Blumenkrantz
2024-03-26 12:31:15 -04:00
committed by Marge Bot
parent e871424b5e
commit a9e023ed94
+2 -2
View File
@@ -115,11 +115,11 @@ emit_wpos_adjustment(lower_wpos_ytransform_state *state,
* inversion/identity, or the other way around if we're drawing to an FBO.
*/
if (invert) {
/* wpos_temp.y = wpos_input * wpostrans.xxxx + wpostrans.yyyy */
/* wpos_temp.y = wpos_temp * wpostrans.xxxx + wpostrans.yyyy */
wpos_temp_y = nir_fadd(b, nir_fmul(b, nir_channel(b, wpos_temp, 1), nir_channel(b, wpostrans, 0)),
nir_channel(b, wpostrans, 1));
} else {
/* wpos_temp.y = wpos_input * wpostrans.zzzz + wpostrans.wwww */
/* wpos_temp.y = wpos_temp * wpostrans.zzzz + wpostrans.wwww */
wpos_temp_y = nir_fadd(b, nir_fmul(b, nir_channel(b, wpos_temp, 1), nir_channel(b, wpostrans, 2)),
nir_channel(b, wpostrans, 3));
}