Skip to content

nir,radv,aco,ac/nir: normalize zero vectors to zero

The result of normalize(0.0) seems to be undefined in the GLSL specification and our current implementation gives NaN. With this MR, a Vulkan driver which implements the new nir_op_fmul_zerowins can have normalize(0.0) give zero instead.

Closes: #4678 (closed)

Merge request reports