From 0a01bdda5fe2247496ce96a9b0909078e1a0f90d Mon Sep 17 00:00:00 2001
From: Friedrich Vock <friedrich.vock@gmx.de>
Date: Thu, 18 Jan 2024 18:54:06 +0100
Subject: [PATCH] Update copyright and add LICENSE

---
 LICENSE                                     | 21 +++++++++++++++++++
 src/dummy.cpp                               |  2 +-
 src/runner.cpp                              |  2 +-
 src/shaders/infinite_loop.comp              | 23 +++++++++++++++++++++
 src/shaders/prefix_sum.comp                 | 23 +++++++++++++++++++++
 src/tests/hard_reset_cp_wait.cpp            |  2 +-
 src/tests/hard_reset_dma_use_after_free.cpp |  2 +-
 src/tests/soft_recovery_loop.cpp            |  2 +-
 src/tests/soft_recovery_pagefault.cpp       |  2 +-
 src/vulkan_device.cpp                       |  2 +-
 10 files changed, 74 insertions(+), 7 deletions(-)
 create mode 100644 LICENSE

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..4bd4d41
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright © 2024 Valve Corporation
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/src/dummy.cpp b/src/dummy.cpp
index 26d51bc..d53c80b 100644
--- a/src/dummy.cpp
+++ b/src/dummy.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2023 Valve Corporation
+ * Copyright © 2024 Valve Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
diff --git a/src/runner.cpp b/src/runner.cpp
index 3653d50..cbc2800 100644
--- a/src/runner.cpp
+++ b/src/runner.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2023 Valve Corporation
+ * Copyright © 2024 Valve Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
diff --git a/src/shaders/infinite_loop.comp b/src/shaders/infinite_loop.comp
index 507c0aa..409312f 100644
--- a/src/shaders/infinite_loop.comp
+++ b/src/shaders/infinite_loop.comp
@@ -1,3 +1,26 @@
+/*
+ * Copyright © 2024 Valve Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
 #version 460 core
 
 #extension GL_EXT_buffer_reference : require
diff --git a/src/shaders/prefix_sum.comp b/src/shaders/prefix_sum.comp
index 688bac0..da59cf5 100644
--- a/src/shaders/prefix_sum.comp
+++ b/src/shaders/prefix_sum.comp
@@ -1,3 +1,26 @@
+/*
+ * Copyright © 2024 Valve Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
 #version 460 core
 
 #extension GL_EXT_buffer_reference : require
diff --git a/src/tests/hard_reset_cp_wait.cpp b/src/tests/hard_reset_cp_wait.cpp
index ee4f596..84562f1 100644
--- a/src/tests/hard_reset_cp_wait.cpp
+++ b/src/tests/hard_reset_cp_wait.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2023 Valve Corporation
+ * Copyright © 2024 Valve Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
diff --git a/src/tests/hard_reset_dma_use_after_free.cpp b/src/tests/hard_reset_dma_use_after_free.cpp
index 1fac99e..a20671a 100644
--- a/src/tests/hard_reset_dma_use_after_free.cpp
+++ b/src/tests/hard_reset_dma_use_after_free.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2023 Valve Corporation
+ * Copyright © 2024 Valve Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
diff --git a/src/tests/soft_recovery_loop.cpp b/src/tests/soft_recovery_loop.cpp
index e3f591f..6bf10b3 100644
--- a/src/tests/soft_recovery_loop.cpp
+++ b/src/tests/soft_recovery_loop.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2023 Valve Corporation
+ * Copyright © 2024 Valve Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
diff --git a/src/tests/soft_recovery_pagefault.cpp b/src/tests/soft_recovery_pagefault.cpp
index ff0d6a1..b4c654c 100644
--- a/src/tests/soft_recovery_pagefault.cpp
+++ b/src/tests/soft_recovery_pagefault.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2023 Valve Corporation
+ * Copyright © 2024 Valve Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
diff --git a/src/vulkan_device.cpp b/src/vulkan_device.cpp
index 2b7bdbe..16ebe3b 100644
--- a/src/vulkan_device.cpp
+++ b/src/vulkan_device.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2023 Valve Corporation
+ * Copyright © 2024 Valve Corporation
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
-- 
GitLab