}
if (instr->sampler_dim == GLSL_SAMPLER_DIM_CUBE) {
- struct qreg ma = qir_FMAXABS(c, qir_FMAXABS(c, s, t), r);
- struct qreg rcp_ma = qir_RCP(c, ma);
- s = qir_FMUL(c, s, rcp_ma);
- t = qir_FMUL(c, t, rcp_ma);
- r = qir_FMUL(c, r, rcp_ma);
-
qir_TEX_R(c, r, texture_u[next_texture_u++]);
} else if (c->key->tex[unit].wrap_s == PIPE_TEX_WRAP_CLAMP_TO_BORDER ||
c->key->tex[unit].wrap_s == PIPE_TEX_WRAP_CLAMP ||
}
}
+ NIR_PASS_V(c->s, nir_normalize_cubemap_coords);
NIR_PASS_V(c->s, nir_lower_tex, &tex_options);
if (c->fs_key && c->fs_key->light_twoside)