Skip to content

Commit

Permalink
icd: Add VkPhysicalDeviceMaintenance3Properties
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Jan 23, 2025
1 parent 814b35a commit 8ce2501
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 17 deletions.
2 changes: 1 addition & 1 deletion icd/generated/function_declarations.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** Copyright (c) 2015-2024 The Khronos Group Inc.
** Copyright (c) 2015-2025 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
Expand Down
8 changes: 7 additions & 1 deletion icd/generated/function_definitions.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** Copyright (c) 2015-2024 The Khronos Group Inc.
** Copyright (c) 2015-2025 The Khronos Group Inc.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -4030,6 +4030,12 @@ static VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceProperties2KHR(
fragment_density_map2_props->maxDescriptorSetSubsampledSamplers = 1;
}

auto *maintenance3_props = lvl_find_mod_in_chain<VkPhysicalDeviceMaintenance3Properties>(pProperties->pNext);
if (maintenance3_props) {
maintenance3_props->maxMemoryAllocationSize = 1073741824;
maintenance3_props->maxPerSetDescriptors = 1024;
}

const uint32_t num_copy_layouts = 5;
const VkImageLayout HostCopyLayouts[]{
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
Expand Down
10 changes: 5 additions & 5 deletions scripts/generate_source.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
# Copyright (c) 2019-2023 The Khronos Group Inc.
# Copyright (c) 2019-2023 Valve Corporation
# Copyright (c) 2019-2023 LunarG, Inc.
# Copyright (c) 2019-2023 Google Inc.
# Copyright (c) 2023-2023 RasterGrid Kft.
# Copyright (c) 2019-2025 The Khronos Group Inc.
# Copyright (c) 2019-2025 Valve Corporation
# Copyright (c) 2019-2025 LunarG, Inc.
# Copyright (c) 2019-2025 Google Inc.
# Copyright (c) 2023-2025 RasterGrid Kft.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
8 changes: 3 additions & 5 deletions scripts/kvt_genvk.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
#
# Copyright (c) 2013-2024 The Khronos Group Inc.
# Copyright (c) 2023-2024 RasterGrid Kft.
# Copyright (c) 2013-2025 The Khronos Group Inc.
# Copyright (c) 2023-2025 RasterGrid Kft.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,9 +16,7 @@
# limitations under the License.

import argparse
import cProfile
import pdb
import string
import sys
import time
import os
Expand Down Expand Up @@ -104,7 +102,7 @@ def makeGenOpts(args):
# Copyright text prefixing all headers (list of strings).
prefixStrings = [
'/*',
'** Copyright (c) 2015-2024 The Khronos Group Inc.',
'** Copyright (c) 2015-2025 The Khronos Group Inc.',
'**',
'** Licensed under the Apache License, Version 2.0 (the "License");',
'** you may not use this file except in compliance with the License.',
Expand Down
16 changes: 11 additions & 5 deletions scripts/mock_icd_generator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/python3 -i
#
# Copyright (c) 2015-2023 The Khronos Group Inc.
# Copyright (c) 2015-2023 Valve Corporation
# Copyright (c) 2015-2023 LunarG, Inc.
# Copyright (c) 2015-2023 Google Inc.
# Copyright (c) 2023-2023 RasterGrid Kft.
# Copyright (c) 2015-2025 The Khronos Group Inc.
# Copyright (c) 2015-2025 Valve Corporation
# Copyright (c) 2015-2025 LunarG, Inc.
# Copyright (c) 2015-2025 Google Inc.
# Copyright (c) 2023-2025 RasterGrid Kft.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -677,6 +677,12 @@
fragment_density_map2_props->maxDescriptorSetSubsampledSamplers = 1;
}
auto *maintenance3_props = lvl_find_mod_in_chain<VkPhysicalDeviceMaintenance3Properties>(pProperties->pNext);
if (maintenance3_props) {
maintenance3_props->maxMemoryAllocationSize = 1073741824;
maintenance3_props->maxPerSetDescriptors = 1024;
}
const uint32_t num_copy_layouts = 5;
const VkImageLayout HostCopyLayouts[]{
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
Expand Down

0 comments on commit 8ce2501

Please sign in to comment.