Lines Matching refs:eta
473 nir_ssa_def *eta = src[2];
477 /* According to the SPIR-V and GLSL specs, eta is always a float
481 * support a hypothetical fixed version of glslang we’ll promote eta to
484 if (I->bit_size != eta->bit_size) {
486 nir_type_conversion_op(nir_type_float | eta->bit_size,
489 eta = nir_build_alu(nb, conversion_op, eta, NULL, NULL, NULL);
491 /* k = 1.0 - eta * eta * (1.0 - dot(N, I) * dot(N, I)) */
493 nir_a_minus_bc(nb, one, eta,
494 nir_fmul(nb, eta, nir_a_minus_bc(nb, one, n_dot_i, n_dot_i)));
496 nir_a_minus_bc(nb, nir_fmul(nb, eta, I),
497 nir_ffma(nb, eta, n_dot_i, nir_fsqrt(nb, k)),