diff --git a/src/gfxstream/codegen/scripts/cereal/api_log_decoder.py b/src/gfxstream/codegen/scripts/cereal/api_log_decoder.py index 811cbbd8095..859bb837e3a 100644 --- a/src/gfxstream/codegen/scripts/cereal/api_log_decoder.py +++ b/src/gfxstream/codegen/scripts/cereal/api_log_decoder.py @@ -1,3 +1,6 @@ +# Copyright 2023 Google LLC +# SPDX-License-Identifier: MIT + import os from typing import List, Set, Dict, Optional diff --git a/src/gfxstream/codegen/scripts/cereal/common/__init__.py b/src/gfxstream/codegen/scripts/cereal/common/__init__.py index dd6cdc998a7..519ef23780e 100644 --- a/src/gfxstream/codegen/scripts/cereal/common/__init__.py +++ b/src/gfxstream/codegen/scripts/cereal/common/__init__.py @@ -1,2 +1,4 @@ +# Copyright 2023 Google LLC +# SPDX-License-Identifier: MIT from .vulkantypes import * from .codegen import * diff --git a/src/gfxstream/codegen/scripts/cereal/common/codegen.py b/src/gfxstream/codegen/scripts/cereal/common/codegen.py index 688a947e043..bac483a2da4 100644 --- a/src/gfxstream/codegen/scripts/cereal/common/codegen.py +++ b/src/gfxstream/codegen/scripts/cereal/common/codegen.py @@ -1,18 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - +# Copyright 2023 Google LLC +# SPDX-License-Identifier: MIT from .vulkantypes import VulkanType, VulkanTypeInfo, VulkanCompoundType, VulkanAPI from collections import OrderedDict from copy import copy diff --git a/src/gfxstream/codegen/scripts/cereal/common/vulkantypes.py b/src/gfxstream/codegen/scripts/cereal/common/vulkantypes.py index 728f23d2b4e..8f2fff2c72f 100644 --- a/src/gfxstream/codegen/scripts/cereal/common/vulkantypes.py +++ b/src/gfxstream/codegen/scripts/cereal/common/vulkantypes.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from typing import Dict, Optional, List, Set, Union from xml.etree.ElementTree import Element diff --git a/src/gfxstream/codegen/scripts/cereal/counting.py b/src/gfxstream/codegen/scripts/cereal/counting.py index 849ceafc3e4..b6d628aad31 100644 --- a/src/gfxstream/codegen/scripts/cereal/counting.py +++ b/src/gfxstream/codegen/scripts/cereal/counting.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2023 Google LLC +# SPDX-License-Identifier: MIT from copy import copy diff --git a/src/gfxstream/codegen/scripts/cereal/decoder.py b/src/gfxstream/codegen/scripts/cereal/decoder.py index dc2dab751c6..6a6b3774a1c 100644 --- a/src/gfxstream/codegen/scripts/cereal/decoder.py +++ b/src/gfxstream/codegen/scripts/cereal/decoder.py @@ -1,3 +1,6 @@ +# Copyright 2023 Google LLC +# SPDX-License-Identifier: MIT + from .common.codegen import CodeGen, VulkanWrapperGenerator from .common.vulkantypes import VulkanAPI, makeVulkanTypeSimple, iterateVulkanType, VulkanTypeInfo,\ VulkanType diff --git a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py index 44953996206..bd8f163e18f 100644 --- a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py +++ b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py @@ -1,3 +1,6 @@ +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT + from .common.codegen import CodeGen, VulkanWrapperGenerator, VulkanAPIWrapper from .common.vulkantypes import \ VulkanAPI, makeVulkanTypeSimple, iterateVulkanType, DISPATCHABLE_HANDLE_TYPES, NON_DISPATCHABLE_HANDLE_TYPES diff --git a/src/gfxstream/codegen/scripts/cereal/deepcopy.py b/src/gfxstream/codegen/scripts/cereal/deepcopy.py index 52842e994b4..5921804ef9a 100644 --- a/src/gfxstream/codegen/scripts/cereal/deepcopy.py +++ b/src/gfxstream/codegen/scripts/cereal/deepcopy.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen from .common.vulkantypes import \ diff --git a/src/gfxstream/codegen/scripts/cereal/dispatch.py b/src/gfxstream/codegen/scripts/cereal/dispatch.py index 4fdf9929835..c0e283d5500 100644 --- a/src/gfxstream/codegen/scripts/cereal/dispatch.py +++ b/src/gfxstream/codegen/scripts/cereal/dispatch.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen from .common.vulkantypes import \ diff --git a/src/gfxstream/codegen/scripts/cereal/encoder.py b/src/gfxstream/codegen/scripts/cereal/encoder.py index 55048b96a29..42e5ff9c9f2 100644 --- a/src/gfxstream/codegen/scripts/cereal/encoder.py +++ b/src/gfxstream/codegen/scripts/cereal/encoder.py @@ -1,3 +1,5 @@ +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT import copy from .common.codegen import CodeGen, VulkanWrapperGenerator diff --git a/src/gfxstream/codegen/scripts/cereal/extensionstructs.py b/src/gfxstream/codegen/scripts/cereal/extensionstructs.py index 68115154fd6..caa4ea19ea8 100644 --- a/src/gfxstream/codegen/scripts/cereal/extensionstructs.py +++ b/src/gfxstream/codegen/scripts/cereal/extensionstructs.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen from .common.vulkantypes import \ diff --git a/src/gfxstream/codegen/scripts/cereal/frontend.py b/src/gfxstream/codegen/scripts/cereal/frontend.py index b182c0e7852..2938a04f398 100644 --- a/src/gfxstream/codegen/scripts/cereal/frontend.py +++ b/src/gfxstream/codegen/scripts/cereal/frontend.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen, VulkanAPIWrapper from .common.vulkantypes import \ diff --git a/src/gfxstream/codegen/scripts/cereal/handlemap.py b/src/gfxstream/codegen/scripts/cereal/handlemap.py index 6360e37e018..8ccc43cdfd4 100644 --- a/src/gfxstream/codegen/scripts/cereal/handlemap.py +++ b/src/gfxstream/codegen/scripts/cereal/handlemap.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen from .common.vulkantypes import \ diff --git a/src/gfxstream/codegen/scripts/cereal/marshaling.py b/src/gfxstream/codegen/scripts/cereal/marshaling.py index 8fc67ddd6b9..0593fb3ceb6 100644 --- a/src/gfxstream/codegen/scripts/cereal/marshaling.py +++ b/src/gfxstream/codegen/scripts/cereal/marshaling.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from copy import copy import hashlib, sys diff --git a/src/gfxstream/codegen/scripts/cereal/marshalingdefs.py b/src/gfxstream/codegen/scripts/cereal/marshalingdefs.py index 01d4bc7da88..01ac6975054 100644 --- a/src/gfxstream/codegen/scripts/cereal/marshalingdefs.py +++ b/src/gfxstream/codegen/scripts/cereal/marshalingdefs.py @@ -1,17 +1,5 @@ -# Copyright (c) 2021 The Android Open Source Project -# Copyright (c) 2021 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT KNOWN_FUNCTION_OPCODES = { "vkCreateInstance": 20000, diff --git a/src/gfxstream/codegen/scripts/cereal/reservedmarshaling.py b/src/gfxstream/codegen/scripts/cereal/reservedmarshaling.py index 1452c3e36d7..492077e42fc 100644 --- a/src/gfxstream/codegen/scripts/cereal/reservedmarshaling.py +++ b/src/gfxstream/codegen/scripts/cereal/reservedmarshaling.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from copy import copy from .common.codegen import CodeGen, VulkanAPIWrapper diff --git a/src/gfxstream/codegen/scripts/cereal/subdecode.py b/src/gfxstream/codegen/scripts/cereal/subdecode.py index feecc33c24c..3c535b35856 100644 --- a/src/gfxstream/codegen/scripts/cereal/subdecode.py +++ b/src/gfxstream/codegen/scripts/cereal/subdecode.py @@ -1,3 +1,5 @@ +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen, VulkanWrapperGenerator from .common.vulkantypes import VulkanAPI, iterateVulkanType, VulkanType diff --git a/src/gfxstream/codegen/scripts/cereal/testing.py b/src/gfxstream/codegen/scripts/cereal/testing.py index 898532fc946..fdf4b1d7f9b 100644 --- a/src/gfxstream/codegen/scripts/cereal/testing.py +++ b/src/gfxstream/codegen/scripts/cereal/testing.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from copy import copy diff --git a/src/gfxstream/codegen/scripts/cereal/transform.py b/src/gfxstream/codegen/scripts/cereal/transform.py index 79aff0e3a8c..d0026bc5ba1 100644 --- a/src/gfxstream/codegen/scripts/cereal/transform.py +++ b/src/gfxstream/codegen/scripts/cereal/transform.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen from .common.vulkantypes import \ diff --git a/src/gfxstream/codegen/scripts/cereal/unbox.py b/src/gfxstream/codegen/scripts/cereal/unbox.py index f18fa2717e7..6c9c1200c82 100644 --- a/src/gfxstream/codegen/scripts/cereal/unbox.py +++ b/src/gfxstream/codegen/scripts/cereal/unbox.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import CodeGen from .common.vulkantypes import \ diff --git a/src/gfxstream/codegen/scripts/cereal/vkextensionstructuretype.py b/src/gfxstream/codegen/scripts/cereal/vkextensionstructuretype.py index 8db988aea79..ca3f97d81ff 100644 --- a/src/gfxstream/codegen/scripts/cereal/vkextensionstructuretype.py +++ b/src/gfxstream/codegen/scripts/cereal/vkextensionstructuretype.py @@ -1,17 +1,5 @@ -# Copyright (c) 2022 The Android Open Source Project -# Copyright (c) 2022 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .wrapperdefs import VulkanWrapperGenerator diff --git a/src/gfxstream/codegen/scripts/cereal/wrapperdefs.py b/src/gfxstream/codegen/scripts/cereal/wrapperdefs.py index 9b96987559d..5d6e2cdbe18 100644 --- a/src/gfxstream/codegen/scripts/cereal/wrapperdefs.py +++ b/src/gfxstream/codegen/scripts/cereal/wrapperdefs.py @@ -1,17 +1,5 @@ -# Copyright (c) 2018 The Android Open Source Project -# Copyright (c) 2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2018 Google LLC +# SPDX-License-Identifier: MIT from .common.codegen import VulkanWrapperGenerator from .common.vulkantypes import makeVulkanTypeSimple diff --git a/src/gfxstream/codegen/scripts/cerealgenerator.py b/src/gfxstream/codegen/scripts/cerealgenerator.py index 99de1e29c9d..7d650ff06be 100644 --- a/src/gfxstream/codegen/scripts/cerealgenerator.py +++ b/src/gfxstream/codegen/scripts/cerealgenerator.py @@ -1,19 +1,5 @@ -#!/usr/bin/python3 -i -# -# Copyright (c) 2013-2018 The Khronos Group Inc. -# Copyright (c) 2013-2018 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Copyright 2023 Google LLC +# SPDX-License-Identifier: MIT import os, re, sys from generator import *