Lines Matching refs:eta
559 nir_ssa_def *eta = src[2];
563 /* According to the SPIR-V and GLSL specs, eta is always a float
567 * support a hypothetical fixed version of glslang we’ll promote eta to
570 if (I->bit_size != eta->bit_size) {
572 nir_type_conversion_op(nir_type_float | eta->bit_size,
575 eta = nir_build_alu(nb, conversion_op, eta, NULL, NULL, NULL);
577 /* k = 1.0 - eta * eta * (1.0 - dot(N, I) * dot(N, I)) */
579 nir_fsub(nb, one, nir_fmul(nb, eta, nir_fmul(nb, eta,
582 nir_fsub(nb, nir_fmul(nb, eta, I),
583 nir_fmul(nb, nir_fadd(nb, nir_fmul(nb, eta, n_dot_i),