diff --git a/intern/cycles/scene/shader_nodes.cpp b/intern/cycles/scene/shader_nodes.cpp index 45442acb856..6b772b386de 100644 --- a/intern/cycles/scene/shader_nodes.cpp +++ b/intern/cycles/scene/shader_nodes.cpp @@ -4725,7 +4725,10 @@ void HairInfoNode::compile(SVMCompiler &compiler) out = output("Random"); if (!out->links.empty()) { const int attr = compiler.attribute(ATTR_STD_CURVE_RANDOM); - compiler.add_node(NODE_ATTR, attr, compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT); + compiler.add_node(NODE_ATTR, + attr, + compiler.encode_uchar4(compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT), + __float_as_uint(0.0f)); } } @@ -4777,7 +4780,10 @@ void PointInfoNode::compile(SVMCompiler &compiler) out = output("Random"); if (!out->links.empty()) { const int attr = compiler.attribute(ATTR_STD_POINT_RANDOM); - compiler.add_node(NODE_ATTR, attr, compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT); + compiler.add_node(NODE_ATTR, + attr, + compiler.encode_uchar4(compiler.stack_assign(out), NODE_ATTR_OUTPUT_FLOAT), + __float_as_uint(0.0f)); } } diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py index 7cd69eec86e..d86b5bde7fb 100644 --- a/tests/python/cycles_render_tests.py +++ b/tests/python/cycles_render_tests.py @@ -115,7 +115,7 @@ BLOCKLIST_GPU = [ 'denoise_hair.blend', 'hair_basemesh_intercept.blend', 'hair_instancer_uv.blend', - 'hair_length_info.blend', + 'hair_info.blend', 'hair_particle_random.blend', "hair_transmission.blend", 'principled_hair_.*.blend',