Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin: Add missing copyright notice to many files #1708

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/build-scripts/ci-coverage.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

# Run code coverage analysis
# This assumes that the build occurred with CODECOV=1 andtests have already
# fully run.
Expand Down
4 changes: 4 additions & 0 deletions src/build-scripts/save-env.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

# Save the env for use by other stages. Exclude things that we know aren't
# needed.
printenv \
Expand Down
5 changes: 2 additions & 3 deletions src/shaders/mandelbrot.osl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Copyright Contributors to the Open Shading Language project.
// BSD licensed, see https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
/////////////////////////////////////////////////////////////////////////////
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage



Expand Down
5 changes: 5 additions & 0 deletions testsuite/andor-reg/a_float_u_b_float_u.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_float_u_b_float_u (output vector cout = 0, output vector mcout = 0)
{
float a = 1/raytype("camera")*5 ;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_u_b_u.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_u_b_u (output vector cout = 0, output vector mcout = 0)
{
int a = raytype("camera")*10;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_u_b_v.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_u_b_v (output vector cout = 0, output vector mcout = 0)
{
int a = 2;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_v_b_u.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_v_b_u (output vector cout = 0, output vector mcout = 0)
{
int a = int(P[0])*10;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_v_b_v.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_v_b_v(output vector cout = 0, output vector mcout = 0)
{
int a = int(P[0])*10;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_v_b_vconditional.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_v_b_vconditional (output vector cout = 0, output vector mcout = 0)
{
int a = int(P[0])*10;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_vconditional_b_u.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_vconditional_b_u (output vector cout = 0, output vector mcout = 0)
{
int a = (P[0] < 0.5);
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_vconditional_b_v.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_vconditional_b_v (output vector cout = 0, output vector mcout = 0)
{
int a = (P[0] < 0.5);
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-and-reg/a_vconditional_b_vconditional.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_vconditional_b_vconditional (output vector cout = 0, output vector mcout = 0)
{
int a = (P[0] < 0.5);
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-xor-reg/a_v_b_v.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_v_b_v(output vector cout = 0, output vector mcout = 0)
{
int a = int(P[0])*10;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-xor-reg/a_v_b_vconditional.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_v_b_vconditional (output vector cout = 0, output vector mcout = 0)
{
int a = int(P[0])*10;
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-xor-reg/a_vconditional_b_u.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_vconditional_b_u (output vector cout = 0, output vector mcout = 0)
{
int a = (P[0] < 0.5);
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-xor-reg/a_vconditional_b_v.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_vconditional_b_v (output vector cout = 0, output vector mcout = 0)
{
int a = (P[0] < 0.5);
Expand Down
5 changes: 5 additions & 0 deletions testsuite/bitwise-xor-reg/a_vconditional_b_vconditional.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader a_vconditional_b_vconditional (output vector cout = 0, output vector mcout = 0)
{
int a = (P[0] < 0.5);
Expand Down
7 changes: 6 additions & 1 deletion testsuite/blackbody-reg/blackbody_u_temperature.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader blackbody_u_temperature (output color Cout = 0, output color mCout = 0)
{
float T = 10000.0*(1.0/(2*raytype("camera"))); // map u range from 0K to 10,000K
Expand All @@ -14,4 +19,4 @@ shader blackbody_u_temperature (output color Cout = 0, output color mCout = 0)
mCout = mcout_;
Cout = cout_;

}
}
7 changes: 6 additions & 1 deletion testsuite/blackbody-reg/blackbody_v_temperature.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader blackbody_v_temperature (output color Cout = 0, output color mCout = 0)
{
float T = 10000.0*u; // map u range from 0K to 10,000K
Expand All @@ -13,4 +18,4 @@ shader blackbody_v_temperature (output color Cout = 0, output color mCout = 0)

mCout = mcout_;
Cout = cout_;
}
}
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_3xu_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_3xu_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_u_space_3xv_dfloat.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_u_space_3xv_dfloat (string colorspace = "--param colorspace must_be_provided", output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_u_space_3xv_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_u_space_3xv_float (string colorspace = "--param colorspace must_be_provided", output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_v_dfloat.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_v_dfloat(output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_v_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_v_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_v_space_3xu_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_v_space_3xu_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_v_space_3xv_dfloat.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_v_space_3xv_dfloat (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/color-reg/test_color_v_space_3xv_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_color_v_space_3xv_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/common/shaders/pretty.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


// pretty(x) rounds very small values to zero and turns -0 values into +0.
// This is useful for testsuite to eliminate some pesky LSB errors that
// cause reference output to differ between platforms.
Expand Down
5 changes: 5 additions & 0 deletions testsuite/length-reg/test_length_u_normal.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_length_u_normal (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/length-reg/test_length_u_vector.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_length_u_vector (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/length-reg/test_length_v_dnormal.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_length_v_dnormal (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/length-reg/test_length_v_dvector.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_length_v_dvector (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/length-reg/test_length_v_normal.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_length_v_normal (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/length-reg/test_length_v_vector.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_length_v_vector (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_u_float_u_float_u_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_u_float_u_float_u_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_v_float_v_float_v_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_v_float_v_float_v_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_v_vector_u_vector_u_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_v_vector_u_vector_u_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_v_vector_u_vector_u_vector.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_v_vector_u_vector_u_vector (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_v_vector_u_vector_v_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_v_vector_u_vector_v_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_v_vector_u_vector_v_vector.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_v_vector_u_vector_v_vector (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_v_vector_v_vector_u_float.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_v_vector_v_vector_u_float (output color Cout = 0)
{
Expand Down
5 changes: 5 additions & 0 deletions testsuite/mix-reg/test_mix_v_vector_v_vector_u_vector.osl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage


shader
test_mix_v_vector_v_vector_u_vector (output color Cout = 0)
{
Expand Down
Loading
Loading