Lionel Landwerlin | 2d9f563 | 2022-01-08 01:12:47 +0200 | [diff] [blame] | 1 | /* Copyright (c) 2015-2022 The Khronos Group Inc. |
| 2 | * Copyright (c) 2015-2022 Valve Corporation |
| 3 | * Copyright (c) 2015-2022 LunarG, Inc. |
| 4 | * Copyright (C) 2015-2022 Google Inc. |
stusmith | edc4e39 | 2021-12-24 15:22:16 +0000 | [diff] [blame] | 5 | * Modifications Copyright (C) 2020-2022 Advanced Micro Devices, Inc. All rights reserved. |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 6 | * |
| 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | * you may not use this file except in compliance with the License. |
| 9 | * You may obtain a copy of the License at |
| 10 | * |
| 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | * |
| 13 | * Unless required by applicable law or agreed to in writing, software |
| 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | * See the License for the specific language governing permissions and |
| 17 | * limitations under the License. |
| 18 | * |
| 19 | * Author: Cody Northrop <cnorthrop@google.com> |
| 20 | * Author: Michael Lentine <mlentine@google.com> |
| 21 | * Author: Tobin Ehlis <tobine@google.com> |
| 22 | * Author: Chia-I Wu <olv@google.com> |
| 23 | * Author: Chris Forbes <chrisf@ijw.co.nz> |
| 24 | * Author: Mark Lobodzinski <mark@lunarg.com> |
| 25 | * Author: Ian Elliott <ianelliott@google.com> |
| 26 | * Author: Dave Houlton <daveh@lunarg.com> |
| 27 | * Author: Dustin Graves <dustin@lunarg.com> |
| 28 | * Author: Jeremy Hayes <jeremy@lunarg.com> |
| 29 | * Author: Jon Ashburn <jon@lunarg.com> |
| 30 | * Author: Karl Schultz <karl@lunarg.com> |
| 31 | * Author: Mark Young <marky@lunarg.com> |
| 32 | * Author: Mike Schuchardt <mikes@lunarg.com> |
| 33 | * Author: Mike Weiblen <mikew@lunarg.com> |
| 34 | * Author: Tony Barbour <tony@LunarG.com> |
| 35 | * Author: John Zulauf <jzulauf@lunarg.com> |
| 36 | * Author: Shannon McPherson <shannon@lunarg.com> |
Jeremy Kniager | e682743 | 2020-04-01 09:05:56 -0600 | [diff] [blame] | 37 | * Author: Jeremy Kniager <jeremyk@lunarg.com> |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 38 | * Author: Nathaniel Cesario <nathaniel@lunarg.com> |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 39 | * Author: Tobias Hector <tobias.hector@amd.com> |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 40 | */ |
| 41 | |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 42 | #include "chassis.h" |
| 43 | #include "core_validation.h" |
| 44 | |
Spencer Fricke | 507600b | 2020-03-22 13:23:06 -0700 | [diff] [blame] | 45 | // clang-format off |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 46 | struct DispatchVuidsCmdDraw : DrawDispatchVuid { |
| 47 | DispatchVuidsCmdDraw() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 48 | pipeline_bound = "VUID-vkCmdDraw-None-02700"; |
| 49 | dynamic_state = "VUID-vkCmdDraw-commandBuffer-02701"; |
| 50 | vertex_binding = "VUID-vkCmdDraw-None-04007"; |
| 51 | vertex_binding_null = "VUID-vkCmdDraw-None-04008"; |
| 52 | compatible_pipeline = "VUID-vkCmdDraw-None-02697"; |
| 53 | render_pass_compatible = "VUID-vkCmdDraw-renderPass-02684"; |
| 54 | subpass_index = "VUID-vkCmdDraw-subpass-02685"; |
| 55 | sample_location = "VUID-vkCmdDraw-sampleLocationsEnable-02689"; |
| 56 | linear_sampler = "VUID-vkCmdDraw-magFilter-04553"; |
| 57 | cubic_sampler = "VUID-vkCmdDraw-None-02692"; |
| 58 | viewport_count = "VUID-vkCmdDraw-viewportCount-03417"; |
| 59 | scissor_count = "VUID-vkCmdDraw-scissorCount-03418"; |
| 60 | viewport_scissor_count = "VUID-vkCmdDraw-viewportCount-03419"; |
| 61 | primitive_topology = "VUID-vkCmdDraw-primitiveTopology-03420"; |
| 62 | corner_sampled_address_mode = "VUID-vkCmdDraw-flags-02696"; |
| 63 | subpass_input = "VUID-vkCmdDraw-None-02686"; |
| 64 | imageview_atomic = "VUID-vkCmdDraw-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 65 | push_constants_set = "VUID-vkCmdDraw-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 66 | image_subresources_render_pass_write = "VUID-vkCmdDraw-None-06537"; |
| 67 | image_subresources_subpass_read = "VUID-vkCmdDraw-None-06538"; |
| 68 | image_subresources_subpass_write = "VUID-vkCmdDraw-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 69 | descriptor_valid = "VUID-vkCmdDraw-None-02699"; |
| 70 | sampler_imageview_type = "VUID-vkCmdDraw-None-02702"; |
| 71 | sampler_implicitLod_dref_proj = "VUID-vkCmdDraw-None-02703"; |
| 72 | sampler_bias_offset = "VUID-vkCmdDraw-None-02704"; |
| 73 | vertex_binding_attribute = "VUID-vkCmdDraw-None-02721"; |
| 74 | dynamic_state_setting_commands = "VUID-vkCmdDraw-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 75 | rasterization_samples = "VUID-vkCmdDraw-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 76 | msrtss_rasterization_samples = "VUID-vkCmdDraw-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 77 | unprotected_command_buffer = "VUID-vkCmdDraw-commandBuffer-02707"; |
| 78 | protected_command_buffer = "VUID-vkCmdDraw-commandBuffer-02712"; |
| 79 | max_multiview_instance_index = "VUID-vkCmdDraw-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 80 | img_filter_cubic = "VUID-vkCmdDraw-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 81 | filter_cubic = "VUID-vkCmdDraw-filterCubic-02694"; |
| 82 | filter_cubic_min_max = "VUID-vkCmdDraw-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 83 | viewport_count_primitive_shading_rate = "VUID-vkCmdDraw-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Vikram Kushwaha | a57b0c3 | 2021-04-19 12:21:46 -0700 | [diff] [blame] | 84 | patch_control_points = "VUID-vkCmdDraw-None-04875"; |
| 85 | rasterizer_discard_enable = "VUID-vkCmdDraw-None-04876"; |
| 86 | depth_bias_enable = "VUID-vkCmdDraw-None-04877"; |
| 87 | logic_op = "VUID-vkCmdDraw-logicOp-04878"; |
| 88 | primitive_restart_enable = "VUID-vkCmdDraw-None-04879"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 89 | vertex_input_binding_stride = "VUID-vkCmdDraw-pStrides-04884"; |
| 90 | vertex_input = kVUID_Core_CmdDraw_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 91 | blend_enable = "VUID-vkCmdDraw-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 92 | color_write_enable = "VUID-vkCmdDraw-attachmentCount-06667"; |
Aaron Hagan | 92a44f8 | 2021-11-19 09:34:56 -0500 | [diff] [blame] | 93 | dynamic_rendering_view_mask = "VUID-vkCmdDraw-viewMask-06178"; |
| 94 | dynamic_rendering_color_count = "VUID-vkCmdDraw-colorAttachmentCount-06179"; |
| 95 | dynamic_rendering_color_formats = "VUID-vkCmdDraw-colorAttachmentCount-06180"; |
| 96 | dynamic_rendering_depth_format = "VUID-vkCmdDraw-pDepthAttachment-06181"; |
| 97 | dynamic_rendering_stencil_format = "VUID-vkCmdDraw-pStencilAttachment-06182"; |
| 98 | dynamic_rendering_fsr = "VUID-vkCmdDraw-imageView-06183"; |
| 99 | dynamic_rendering_fdm = "VUID-vkCmdDraw-imageView-06184"; |
Aaron Hagan | 09a0e17 | 2021-11-19 21:18:33 -0500 | [diff] [blame] | 100 | dynamic_rendering_color_sample = "VUID-vkCmdDraw-colorAttachmentCount-06185"; |
| 101 | dynamic_rendering_depth_sample = "VUID-vkCmdDraw-pDepthAttachment-06186"; |
| 102 | dynamic_rendering_stencil_sample = "VUID-vkCmdDraw-pStencilAttachment-06187"; |
| 103 | dynamic_rendering_multi_sample = "VUID-vkCmdDraw-colorAttachmentCount-06188"; |
Aaron Hagan | aca5044 | 2021-12-07 22:26:29 -0500 | [diff] [blame] | 104 | dynamic_rendering_06189 = "VUID-vkCmdDraw-pDepthAttachment-06189"; |
| 105 | dynamic_rendering_06190 = "VUID-vkCmdDraw-pStencilAttachment-06190"; |
| 106 | dynamic_rendering_06198 = "VUID-vkCmdDraw-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 107 | dynamic_rendering_07285 = "VUID-vkCmdDraw-multisampledRenderToSingleSampled-07285"; |
| 108 | dynamic_rendering_07286 = "VUID-vkCmdDraw-multisampledRenderToSingleSampled-07286"; |
| 109 | dynamic_rendering_07287 = "VUID-vkCmdDraw-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 110 | storage_image_read_without_format = "VUID-vkCmdDraw-OpTypeImage-07028"; |
| 111 | storage_image_write_without_format = "VUID-vkCmdDraw-OpTypeImage-07027"; |
| 112 | storage_texel_buffer_read_without_format = "VUID-vkCmdDraw-OpTypeImage-07030"; |
| 113 | storage_texel_buffer_write_without_format = "VUID-vkCmdDraw-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 114 | depth_compare_sample = "VUID-vkCmdDraw-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 115 | dynamic_sample_locations = "VUID-vkCmdDraw-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 116 | primitives_generated = "VUID-vkCmdDraw-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 117 | primitives_generated_streams = "VUID-vkCmdDraw-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 118 | } |
| 119 | }; |
| 120 | |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 121 | struct DispatchVuidsCmdDrawMultiEXT : DrawDispatchVuid { |
| 122 | DispatchVuidsCmdDrawMultiEXT() : DrawDispatchVuid() { |
| 123 | pipeline_bound = "VUID-vkCmdDrawMultiEXT-None-02700"; |
| 124 | dynamic_state = "VUID-vkCmdDrawMultiEXT-commandBuffer-02701"; |
| 125 | vertex_binding = "VUID-vkCmdDrawMultiEXT-None-04007"; |
| 126 | vertex_binding_null = "VUID-vkCmdDrawMultiEXT-None-04008"; |
| 127 | compatible_pipeline = "VUID-vkCmdDrawMultiEXT-None-02697"; |
| 128 | render_pass_compatible = "VUID-vkCmdDrawMultiEXT-renderPass-02684"; |
| 129 | subpass_index = "VUID-vkCmdDrawMultiEXT-subpass-02685"; |
| 130 | sample_location = "VUID-vkCmdDrawMultiEXT-sampleLocationsEnable-02689"; |
| 131 | linear_sampler = "VUID-vkCmdDrawMultiEXT-magFilter-04553"; |
| 132 | cubic_sampler = "VUID-vkCmdDrawMultiEXT-None-02692"; |
| 133 | viewport_count = "VUID-vkCmdDrawMultiEXT-viewportCount-03417"; |
| 134 | scissor_count = "VUID-vkCmdDrawMultiEXT-scissorCount-03418"; |
| 135 | viewport_scissor_count = "VUID-vkCmdDrawMultiEXT-viewportCount-03419"; |
| 136 | primitive_topology = "VUID-vkCmdDrawMultiEXT-primitiveTopology-03420"; |
| 137 | corner_sampled_address_mode = "VUID-vkCmdDrawMultiEXT-flags-02696"; |
| 138 | subpass_input = "VUID-vkCmdDrawMultiEXT-None-02686"; |
| 139 | imageview_atomic = "VUID-vkCmdDrawMultiEXT-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 140 | push_constants_set = "VUID-vkCmdDrawMultiEXT-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 141 | image_subresources_render_pass_write = "VUID-vkCmdDrawMultiEXT-None-06537"; |
| 142 | image_subresources_subpass_read = "VUID-vkCmdDrawMultiEXT-None-06538"; |
| 143 | image_subresources_subpass_write = "VUID-vkCmdDrawMultiEXT-None-06539"; |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 144 | descriptor_valid = "VUID-vkCmdDrawMultiEXT-None-02699"; |
| 145 | sampler_imageview_type = "VUID-vkCmdDrawMultiEXT-None-02702"; |
| 146 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawMultiEXT-None-02703"; |
| 147 | sampler_bias_offset = "VUID-vkCmdDrawMultiEXT-None-02704"; |
| 148 | vertex_binding_attribute = "VUID-vkCmdDrawMultiEXT-None-02721"; |
| 149 | dynamic_state_setting_commands = "VUID-vkCmdDrawMultiEXT-None-02859"; |
| 150 | rasterization_samples = "VUID-vkCmdDrawMultiEXT-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 151 | msrtss_rasterization_samples = "VUID-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07284"; |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 152 | unprotected_command_buffer = "VUID-vkCmdDrawMultiEXT-commandBuffer-02707"; |
| 153 | protected_command_buffer = "VUID-vkCmdDrawMultiEXT-commandBuffer-02712"; |
| 154 | max_multiview_instance_index = "VUID-vkCmdDrawMultiEXT-maxMultiviewInstanceIndex-02688"; |
| 155 | img_filter_cubic = "VUID-vkCmdDrawMultiEXT-None-02693"; |
| 156 | filter_cubic = "VUID-vkCmdDrawMultiEXT-filterCubic-02694"; |
| 157 | filter_cubic_min_max = "VUID-vkCmdDrawMultiEXT-filterCubicMinmax-02695"; |
| 158 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawMultiEXT-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
| 159 | patch_control_points = "VUID-vkCmdDrawMultiEXT-None-04875"; |
| 160 | rasterizer_discard_enable = "VUID-vkCmdDrawMultiEXT-None-04876"; |
| 161 | depth_bias_enable = "VUID-vkCmdDrawMultiEXT-None-04877"; |
| 162 | logic_op = "VUID-vkCmdDrawMultiEXT-logicOp-04878"; |
| 163 | primitive_restart_enable = "VUID-vkCmdDrawMultiEXT-None-04879"; |
| 164 | vertex_input_binding_stride = "VUID-vkCmdDrawMultiEXT-pStrides-04884"; |
| 165 | vertex_input = kVUID_Core_CmdDrawMultiEXT_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 166 | blend_enable = "VUID-vkCmdDrawMultiEXT-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 167 | color_write_enable = "VUID-vkCmdDrawMultiEXT-attachmentCount-06667"; |
Aaron Hagan | 92a44f8 | 2021-11-19 09:34:56 -0500 | [diff] [blame] | 168 | dynamic_rendering_view_mask = "VUID-vkCmdDrawMultiEXT-viewMask-06178"; |
| 169 | dynamic_rendering_color_count = "VUID-vkCmdDrawMultiEXT-colorAttachmentCount-06179"; |
| 170 | dynamic_rendering_color_formats = "VUID-vkCmdDrawMultiEXT-colorAttachmentCount-06180"; |
| 171 | dynamic_rendering_depth_format = "VUID-vkCmdDrawMultiEXT-pDepthAttachment-06181"; |
| 172 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawMultiEXT-pStencilAttachment-06182"; |
| 173 | dynamic_rendering_fsr = "VUID-vkCmdDrawMultiEXT-imageView-06183"; |
| 174 | dynamic_rendering_fdm = "VUID-vkCmdDrawMultiEXT-imageView-06184"; |
Aaron Hagan | 09a0e17 | 2021-11-19 21:18:33 -0500 | [diff] [blame] | 175 | dynamic_rendering_color_sample = "VUID-vkCmdDrawMultiEXT-colorAttachmentCount-06185"; |
| 176 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawMultiEXT-pDepthAttachment-06186"; |
| 177 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawMultiEXT-pStencilAttachment-06187"; |
| 178 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawMultiEXT-colorAttachmentCount-06188"; |
Aaron Hagan | aca5044 | 2021-12-07 22:26:29 -0500 | [diff] [blame] | 179 | dynamic_rendering_06189 = "VUID-vkCmdDrawMultiEXT-pDepthAttachment-06189"; |
| 180 | dynamic_rendering_06190 = "VUID-vkCmdDrawMultiEXT-pStencilAttachment-06190"; |
| 181 | dynamic_rendering_06198 = "VUID-vkCmdDrawMultiEXT-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 182 | dynamic_rendering_07285 = "VUID-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07285"; |
| 183 | dynamic_rendering_07286 = "VUID-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07286"; |
| 184 | dynamic_rendering_07287 = "VUID-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 185 | storage_image_read_without_format = "VUID-vkCmdDrawMultiEXT-OpTypeImage-07028"; |
| 186 | storage_image_write_without_format = "VUID-vkCmdDrawMultiEXT-OpTypeImage-07027"; |
| 187 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawMultiEXT-OpTypeImage-07030"; |
| 188 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawMultiEXT-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 189 | depth_compare_sample = "VUID-vkCmdDrawMultiEXT-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 190 | dynamic_sample_locations = "VUID-vkCmdDrawMultiEXT-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 191 | primitives_generated = "VUID-vkCmdDrawMultiEXT-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 192 | primitives_generated_streams = "VUID-vkCmdDrawMultiEXT-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 193 | } |
| 194 | }; |
| 195 | |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 196 | struct DispatchVuidsCmdDrawIndexed : DrawDispatchVuid { |
| 197 | DispatchVuidsCmdDrawIndexed() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 198 | pipeline_bound = "VUID-vkCmdDrawIndexed-None-02700"; |
| 199 | dynamic_state = "VUID-vkCmdDrawIndexed-commandBuffer-02701"; |
| 200 | vertex_binding = "VUID-vkCmdDrawIndexed-None-04007"; |
| 201 | vertex_binding_null = "VUID-vkCmdDrawIndexed-None-04008"; |
| 202 | compatible_pipeline = "VUID-vkCmdDrawIndexed-None-02697"; |
| 203 | render_pass_compatible = "VUID-vkCmdDrawIndexed-renderPass-02684"; |
| 204 | subpass_index = "VUID-vkCmdDrawIndexed-subpass-02685"; |
| 205 | sample_location = "VUID-vkCmdDrawIndexed-sampleLocationsEnable-02689"; |
| 206 | linear_sampler = "VUID-vkCmdDrawIndexed-magFilter-04553"; |
| 207 | cubic_sampler = "VUID-vkCmdDrawIndexed-None-02692"; |
| 208 | viewport_count = "VUID-vkCmdDrawIndexed-viewportCount-03417"; |
| 209 | scissor_count = "VUID-vkCmdDrawIndexed-scissorCount-03418"; |
| 210 | viewport_scissor_count = "VUID-vkCmdDrawIndexed-viewportCount-03419"; |
| 211 | primitive_topology = "VUID-vkCmdDrawIndexed-primitiveTopology-03420"; |
| 212 | corner_sampled_address_mode = "VUID-vkCmdDrawIndexed-flags-02696"; |
| 213 | subpass_input = "VUID-vkCmdDrawIndexed-None-02686"; |
| 214 | imageview_atomic = "VUID-vkCmdDrawIndexed-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 215 | push_constants_set = "VUID-vkCmdDrawIndexed-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 216 | image_subresources_render_pass_write = "VUID-vkCmdDrawIndexed-None-06537"; |
| 217 | image_subresources_subpass_read = "VUID-vkCmdDrawIndexed-None-06538"; |
| 218 | image_subresources_subpass_write = "VUID-vkCmdDrawIndexed-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 219 | descriptor_valid = "VUID-vkCmdDrawIndexed-None-02699"; |
| 220 | sampler_imageview_type = "VUID-vkCmdDrawIndexed-None-02702"; |
| 221 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawIndexed-None-02703"; |
| 222 | sampler_bias_offset = "VUID-vkCmdDrawIndexed-None-02704"; |
| 223 | vertex_binding_attribute = "VUID-vkCmdDrawIndexed-None-02721"; |
| 224 | dynamic_state_setting_commands = "VUID-vkCmdDrawIndexed-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 225 | rasterization_samples = "VUID-vkCmdDrawIndexed-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 226 | msrtss_rasterization_samples = "VUID-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 227 | unprotected_command_buffer = "VUID-vkCmdDrawIndexed-commandBuffer-02707"; |
| 228 | protected_command_buffer = "VUID-vkCmdDrawIndexed-commandBuffer-02712"; |
| 229 | max_multiview_instance_index = "VUID-vkCmdDrawIndexed-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 230 | img_filter_cubic = "VUID-vkCmdDrawIndexed-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 231 | filter_cubic = "VUID-vkCmdDrawIndexed-filterCubic-02694"; |
| 232 | filter_cubic_min_max = "VUID-vkCmdDrawIndexed-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 233 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawIndexed-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 234 | patch_control_points = "VUID-vkCmdDrawIndexed-None-04875"; |
| 235 | rasterizer_discard_enable = "VUID-vkCmdDrawIndexed-None-04876"; |
| 236 | depth_bias_enable = "VUID-vkCmdDrawIndexed-None-04877"; |
| 237 | logic_op = "VUID-vkCmdDrawIndexed-logicOp-04878"; |
| 238 | primitive_restart_enable = "VUID-vkCmdDrawIndexed-None-04879"; |
| 239 | vertex_input_binding_stride = "VUID-vkCmdDrawIndexed-pStrides-04884"; |
| 240 | vertex_input = kVUID_Core_CmdDrawIndexed_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 241 | blend_enable = "VUID-vkCmdDrawIndexed-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 242 | color_write_enable = "VUID-vkCmdDrawIndexed-attachmentCount-06667"; |
Aaron Hagan | 92a44f8 | 2021-11-19 09:34:56 -0500 | [diff] [blame] | 243 | dynamic_rendering_view_mask = "VUID-vkCmdDrawIndexed-viewMask-06178"; |
| 244 | dynamic_rendering_color_count = "VUID-vkCmdDrawIndexed-colorAttachmentCount-06179"; |
| 245 | dynamic_rendering_color_formats = "VUID-vkCmdDrawIndexed-colorAttachmentCount-06180"; |
| 246 | dynamic_rendering_depth_format = "VUID-vkCmdDrawIndexed-pDepthAttachment-06181"; |
| 247 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawIndexed-pStencilAttachment-06182"; |
| 248 | dynamic_rendering_fsr = "VUID-vkCmdDrawIndexed-imageView-06183"; |
| 249 | dynamic_rendering_fdm = "VUID-vkCmdDrawIndexed-imageView-06184"; |
Aaron Hagan | 09a0e17 | 2021-11-19 21:18:33 -0500 | [diff] [blame] | 250 | dynamic_rendering_color_sample = "VUID-vkCmdDrawIndexed-colorAttachmentCount-06185"; |
| 251 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawIndexed-pDepthAttachment-06186"; |
| 252 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawIndexed-pStencilAttachment-06187"; |
| 253 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawIndexed-colorAttachmentCount-06188"; |
Aaron Hagan | aca5044 | 2021-12-07 22:26:29 -0500 | [diff] [blame] | 254 | dynamic_rendering_06189 = "VUID-vkCmdDrawIndexed-pDepthAttachment-06189"; |
| 255 | dynamic_rendering_06190 = "VUID-vkCmdDrawIndexed-pStencilAttachment-06190"; |
| 256 | dynamic_rendering_06198 = "VUID-vkCmdDrawIndexed-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 257 | dynamic_rendering_07285 = "VUID-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07285"; |
| 258 | dynamic_rendering_07286 = "VUID-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07286"; |
| 259 | dynamic_rendering_07287 = "VUID-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 260 | storage_image_read_without_format = "VUID-vkCmdDrawIndexed-OpTypeImage-07028"; |
| 261 | storage_image_write_without_format = "VUID-vkCmdDrawIndexed-OpTypeImage-07027"; |
| 262 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawIndexed-OpTypeImage-07030"; |
| 263 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawIndexed-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 264 | depth_compare_sample = "VUID-vkCmdDrawIndexed-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 265 | dynamic_sample_locations = "VUID-vkCmdDrawIndexed-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 266 | primitives_generated = "VUID-vkCmdDrawIndexed-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 267 | primitives_generated_streams = "VUID-vkCmdDrawIndexed-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 268 | } |
| 269 | }; |
| 270 | |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 271 | struct DispatchVuidsCmdDrawMultiIndexedEXT : DrawDispatchVuid { |
| 272 | DispatchVuidsCmdDrawMultiIndexedEXT() : DrawDispatchVuid() { |
Lionel Landwerlin | 45e981c | 2021-12-07 15:29:40 +0200 | [diff] [blame] | 273 | pipeline_bound = "VUID-vkCmdDrawMultiIndexedEXT-None-02700"; |
| 274 | dynamic_state = "VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-02701"; |
| 275 | vertex_binding = "VUID-vkCmdDrawMultiIndexedEXT-None-04007"; |
| 276 | vertex_binding_null = "VUID-vkCmdDrawMultiIndexedEXT-None-04008"; |
| 277 | compatible_pipeline = "VUID-vkCmdDrawMultiIndexedEXT-None-02697"; |
| 278 | render_pass_compatible = "VUID-vkCmdDrawMultiIndexedEXT-renderPass-02684"; |
| 279 | subpass_index = "VUID-vkCmdDrawMultiIndexedEXT-subpass-02685"; |
| 280 | sample_location = "VUID-vkCmdDrawMultiIndexedEXT-sampleLocationsEnable-02689"; |
| 281 | linear_sampler = "VUID-vkCmdDrawMultiIndexedEXT-magFilter-04553"; |
| 282 | cubic_sampler = "VUID-vkCmdDrawMultiIndexedEXT-None-02692"; |
| 283 | viewport_count = "VUID-vkCmdDrawMultiIndexedEXT-viewportCount-03417"; |
| 284 | scissor_count = "VUID-vkCmdDrawMultiIndexedEXT-scissorCount-03418"; |
| 285 | viewport_scissor_count = "VUID-vkCmdDrawMultiIndexedEXT-viewportCount-03419"; |
| 286 | primitive_topology = "VUID-vkCmdDrawMultiIndexedEXT-primitiveTopology-03420"; |
| 287 | corner_sampled_address_mode = "VUID-vkCmdDrawMultiIndexedEXT-flags-02696"; |
| 288 | subpass_input = "VUID-vkCmdDrawMultiIndexedEXT-None-02686"; |
| 289 | imageview_atomic = "VUID-vkCmdDrawMultiIndexedEXT-None-02691"; |
| 290 | push_constants_set = "VUID-vkCmdDrawMultiIndexedEXT-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 291 | image_subresources_render_pass_write = "VUID-vkCmdDrawMultiIndexedEXT-None-06537"; |
| 292 | image_subresources_subpass_read = "VUID-vkCmdDrawMultiIndexedEXT-None-06538"; |
| 293 | image_subresources_subpass_write = "VUID-vkCmdDrawMultiIndexedEXT-None-06539"; |
Lionel Landwerlin | 45e981c | 2021-12-07 15:29:40 +0200 | [diff] [blame] | 294 | descriptor_valid = "VUID-vkCmdDrawMultiIndexedEXT-None-02699"; |
| 295 | sampler_imageview_type = "VUID-vkCmdDrawMultiIndexedEXT-None-02702"; |
| 296 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawMultiIndexedEXT-None-02703"; |
| 297 | sampler_bias_offset = "VUID-vkCmdDrawMultiIndexedEXT-None-02704"; |
| 298 | vertex_binding_attribute = "VUID-vkCmdDrawMultiIndexedEXT-None-02721"; |
| 299 | dynamic_state_setting_commands = "VUID-vkCmdDrawMultiIndexedEXT-None-02859"; |
| 300 | rasterization_samples = "VUID-vkCmdDrawMultiIndexedEXT-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 301 | msrtss_rasterization_samples = "VUID-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07284"; |
Lionel Landwerlin | 45e981c | 2021-12-07 15:29:40 +0200 | [diff] [blame] | 302 | unprotected_command_buffer = "VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-02707"; |
| 303 | protected_command_buffer = "VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-02712"; |
| 304 | max_multiview_instance_index = "VUID-vkCmdDrawMultiIndexedEXT-maxMultiviewInstanceIndex-02688"; |
| 305 | img_filter_cubic = "VUID-vkCmdDrawMultiIndexedEXT-None-02693"; |
| 306 | filter_cubic = "VUID-vkCmdDrawMultiIndexedEXT-filterCubic-02694"; |
| 307 | filter_cubic_min_max = "VUID-vkCmdDrawMultiIndexedEXT-filterCubicMinmax-02695"; |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 308 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawMultiIndexedEXT-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Lionel Landwerlin | 45e981c | 2021-12-07 15:29:40 +0200 | [diff] [blame] | 309 | patch_control_points = "VUID-vkCmdDrawMultiIndexedEXT-None-04875"; |
| 310 | rasterizer_discard_enable = "VUID-vkCmdDrawMultiIndexedEXT-None-04876"; |
| 311 | depth_bias_enable = "VUID-vkCmdDrawMultiIndexedEXT-None-04877"; |
| 312 | logic_op = "VUID-vkCmdDrawMultiIndexedEXT-logicOp-04878"; |
| 313 | primitive_restart_enable = "VUID-vkCmdDrawMultiIndexedEXT-None-04879"; |
| 314 | vertex_input_binding_stride = "VUID-vkCmdDrawMultiIndexedEXT-pStrides-04884"; |
| 315 | vertex_input = kVUID_Core_CmdDrawMultiIndexedEXT_VertexInput; |
| 316 | blend_enable = "VUID-vkCmdDrawMultiIndexedEXT-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 317 | color_write_enable = "VUID-vkCmdDrawMultiIndexedEXT-attachmentCount-06667"; |
Lionel Landwerlin | 45e981c | 2021-12-07 15:29:40 +0200 | [diff] [blame] | 318 | dynamic_rendering_view_mask = "VUID-vkCmdDrawMultiIndexedEXT-viewMask-06178"; |
| 319 | dynamic_rendering_color_count = "VUID-vkCmdDrawMultiIndexedEXT-colorAttachmentCount-06179"; |
| 320 | dynamic_rendering_color_formats = "VUID-vkCmdDrawMultiIndexedEXT-colorAttachmentCount-06180"; |
| 321 | dynamic_rendering_depth_format = "VUID-vkCmdDrawMultiIndexedEXT-pDepthAttachment-06181"; |
| 322 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawMultiIndexedEXT-pStencilAttachment-06182"; |
| 323 | dynamic_rendering_fsr = "VUID-vkCmdDrawMultiIndexedEXT-imageView-06183"; |
| 324 | dynamic_rendering_fdm = "VUID-vkCmdDrawMultiIndexedEXT-imageView-06184"; |
| 325 | dynamic_rendering_color_sample = "VUID-vkCmdDrawMultiIndexedEXT-colorAttachmentCount-06185"; |
| 326 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawMultiIndexedEXT-pDepthAttachment-06186"; |
| 327 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawMultiIndexedEXT-pStencilAttachment-06187"; |
| 328 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawMultiIndexedEXT-colorAttachmentCount-06188"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 329 | dynamic_rendering_06189 = "VUID-vkCmdDrawMultiIndexedEXT-pDepthAttachment-06189"; |
| 330 | dynamic_rendering_06190 = "VUID-vkCmdDrawMultiIndexedEXT-pStencilAttachment-06190"; |
| 331 | dynamic_rendering_06198 = "VUID-vkCmdDrawMultiIndexedEXT-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 332 | dynamic_rendering_07285 = "VUID-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07285"; |
| 333 | dynamic_rendering_07286 = "VUID-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07286"; |
| 334 | dynamic_rendering_07287 = "VUID-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 335 | storage_image_read_without_format = "VUID-vkCmdDrawMultiIndexedEXT-OpTypeImage-07028"; |
| 336 | storage_image_write_without_format = "VUID-vkCmdDrawMultiIndexedEXT-OpTypeImage-07027"; |
| 337 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawMultiIndexedEXT-OpTypeImage-07030"; |
| 338 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawMultiIndexedEXT-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 339 | depth_compare_sample = "VUID-vkCmdDrawMultiIndexedEXT-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 340 | dynamic_sample_locations = "VUID-vkCmdDrawMultiIndexedEXT-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 341 | primitives_generated = "VUID-vkCmdDrawMultiIndexedEXT-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 342 | primitives_generated_streams = "VUID-vkCmdDrawMultiIndexedEXT-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 343 | } |
| 344 | }; |
| 345 | |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 346 | struct DispatchVuidsCmdDrawIndirect : DrawDispatchVuid { |
| 347 | DispatchVuidsCmdDrawIndirect() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 348 | pipeline_bound = "VUID-vkCmdDrawIndirect-None-02700"; |
| 349 | dynamic_state = "VUID-vkCmdDrawIndirect-commandBuffer-02701"; |
| 350 | vertex_binding = "VUID-vkCmdDrawIndirect-None-04007"; |
| 351 | vertex_binding_null = "VUID-vkCmdDrawIndirect-None-04008"; |
| 352 | compatible_pipeline = "VUID-vkCmdDrawIndirect-None-02697"; |
| 353 | render_pass_compatible = "VUID-vkCmdDrawIndirect-renderPass-02684"; |
| 354 | subpass_index = "VUID-vkCmdDrawIndirect-subpass-02685"; |
| 355 | sample_location = "VUID-vkCmdDrawIndirect-sampleLocationsEnable-02689"; |
| 356 | linear_sampler = "VUID-vkCmdDrawIndirect-magFilter-04553"; |
| 357 | cubic_sampler = "VUID-vkCmdDrawIndirect-None-02692"; |
| 358 | indirect_protected_cb = "VUID-vkCmdDrawIndirect-commandBuffer-02711"; |
| 359 | indirect_contiguous_memory = "VUID-vkCmdDrawIndirect-buffer-02708"; |
| 360 | indirect_buffer_bit = "VUID-vkCmdDrawIndirect-buffer-02709"; |
| 361 | viewport_count = "VUID-vkCmdDrawIndirect-viewportCount-03417"; |
| 362 | scissor_count = "VUID-vkCmdDrawIndirect-scissorCount-03418"; |
| 363 | viewport_scissor_count = "VUID-vkCmdDrawIndirect-viewportCount-03419"; |
| 364 | primitive_topology = "VUID-vkCmdDrawIndirect-primitiveTopology-03420"; |
| 365 | corner_sampled_address_mode = "VUID-vkCmdDrawIndirect-flags-02696"; |
| 366 | subpass_input = "VUID-vkCmdDrawIndirect-None-02686"; |
| 367 | imageview_atomic = "VUID-vkCmdDrawIndirect-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 368 | push_constants_set = "VUID-vkCmdDrawIndirect-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 369 | image_subresources_render_pass_write = "VUID-vkCmdDrawIndirect-None-06537"; |
| 370 | image_subresources_subpass_read = "VUID-vkCmdDrawIndirect-None-06538"; |
| 371 | image_subresources_subpass_write = "VUID-vkCmdDrawIndirect-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 372 | descriptor_valid = "VUID-vkCmdDrawIndirect-None-02699"; |
| 373 | sampler_imageview_type = "VUID-vkCmdDrawIndirect-None-02702"; |
| 374 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawIndirect-None-02703"; |
| 375 | sampler_bias_offset = "VUID-vkCmdDrawIndirect-None-02704"; |
| 376 | vertex_binding_attribute = "VUID-vkCmdDrawIndirect-None-02721"; |
| 377 | dynamic_state_setting_commands = "VUID-vkCmdDrawIndirect-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 378 | rasterization_samples = "VUID-vkCmdDrawIndirect-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 379 | msrtss_rasterization_samples = "VUID-vkCmdDrawIndirect-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 380 | unprotected_command_buffer = "VUID-vkCmdDrawIndirect-commandBuffer-02707"; |
| 381 | max_multiview_instance_index = "VUID-vkCmdDrawIndirect-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 382 | img_filter_cubic = "VUID-vkCmdDrawIndirect-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 383 | filter_cubic = "VUID-vkCmdDrawIndirect-filterCubic-02694"; |
| 384 | filter_cubic_min_max = "VUID-vkCmdDrawIndirect-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 385 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawIndirect-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 386 | patch_control_points = "VUID-vkCmdDrawIndirect-None-04875"; |
| 387 | rasterizer_discard_enable = "VUID-vkCmdDrawIndirect-None-04876"; |
| 388 | depth_bias_enable = "VUID-vkCmdDrawIndirect-None-04877"; |
| 389 | logic_op = "VUID-vkCmdDrawIndirect-logicOp-04878"; |
| 390 | primitive_restart_enable = "VUID-vkCmdDrawIndirect-None-04879"; |
| 391 | vertex_input_binding_stride = "VUID-vkCmdDrawIndirect-pStrides-04884"; |
| 392 | vertex_input = kVUID_Core_CmdDrawIndirect_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 393 | blend_enable = "VUID-vkCmdDrawIndirect-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 394 | color_write_enable = "VUID-vkCmdDrawIndirect-attachmentCount-06667"; |
Aaron Hagan | 92a44f8 | 2021-11-19 09:34:56 -0500 | [diff] [blame] | 395 | dynamic_rendering_view_mask = "VUID-vkCmdDrawIndirect-viewMask-06178"; |
| 396 | dynamic_rendering_color_count = "VUID-vkCmdDrawIndirect-colorAttachmentCount-06179"; |
| 397 | dynamic_rendering_color_formats = "VUID-vkCmdDrawIndirect-colorAttachmentCount-06180"; |
| 398 | dynamic_rendering_depth_format = "VUID-vkCmdDrawIndirect-pDepthAttachment-06181"; |
| 399 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawIndirect-pStencilAttachment-06182"; |
| 400 | dynamic_rendering_fsr = "VUID-vkCmdDrawIndirect-imageView-06183"; |
| 401 | dynamic_rendering_fdm = "VUID-vkCmdDrawIndirect-imageView-06184"; |
Aaron Hagan | 09a0e17 | 2021-11-19 21:18:33 -0500 | [diff] [blame] | 402 | dynamic_rendering_color_sample = "VUID-vkCmdDrawIndirect-colorAttachmentCount-06185"; |
| 403 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawIndirect-pDepthAttachment-06186"; |
| 404 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawIndirect-pStencilAttachment-06187"; |
| 405 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawIndirect-colorAttachmentCount-06188"; |
Aaron Hagan | aca5044 | 2021-12-07 22:26:29 -0500 | [diff] [blame] | 406 | dynamic_rendering_06189 = "VUID-vkCmdDrawIndirect-pDepthAttachment-06189"; |
| 407 | dynamic_rendering_06190 = "VUID-vkCmdDrawIndirect-pStencilAttachment-06190"; |
| 408 | dynamic_rendering_06198 = "VUID-vkCmdDrawIndirect-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 409 | dynamic_rendering_07285 = "VUID-vkCmdDrawIndirect-multisampledRenderToSingleSampled-07285"; |
| 410 | dynamic_rendering_07286 = "VUID-vkCmdDrawIndirect-multisampledRenderToSingleSampled-07286"; |
| 411 | dynamic_rendering_07287 = "VUID-vkCmdDrawIndirect-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 412 | storage_image_read_without_format = "VUID-vkCmdDrawIndirect-OpTypeImage-07028"; |
| 413 | storage_image_write_without_format = "VUID-vkCmdDrawIndirect-OpTypeImage-07027"; |
| 414 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawIndirect-OpTypeImage-07030"; |
| 415 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawIndirect-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 416 | depth_compare_sample = "VUID-vkCmdDrawIndirect-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 417 | dynamic_sample_locations = "VUID-vkCmdDrawIndirect-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 418 | primitives_generated = "VUID-vkCmdDrawIndirect-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 419 | primitives_generated_streams = "VUID-vkCmdDrawIndirect-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 420 | } |
| 421 | }; |
| 422 | |
| 423 | struct DispatchVuidsCmdDrawIndexedIndirect : DrawDispatchVuid { |
| 424 | DispatchVuidsCmdDrawIndexedIndirect() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 425 | pipeline_bound = "VUID-vkCmdDrawIndexedIndirect-None-02700"; |
| 426 | dynamic_state = "VUID-vkCmdDrawIndexedIndirect-commandBuffer-02701"; |
| 427 | vertex_binding = "VUID-vkCmdDrawIndexedIndirect-None-04007"; |
| 428 | vertex_binding_null = "VUID-vkCmdDrawIndexedIndirect-None-04008"; |
| 429 | compatible_pipeline = "VUID-vkCmdDrawIndexedIndirect-None-02697"; |
| 430 | render_pass_compatible = "VUID-vkCmdDrawIndexedIndirect-renderPass-02684"; |
| 431 | subpass_index = "VUID-vkCmdDrawIndexedIndirect-subpass-02685"; |
| 432 | sample_location = "VUID-vkCmdDrawIndexedIndirect-sampleLocationsEnable-02689"; |
| 433 | linear_sampler = "VUID-vkCmdDrawIndexedIndirect-magFilter-04553"; |
| 434 | cubic_sampler = "VUID-vkCmdDrawIndexedIndirect-None-02692"; |
| 435 | indirect_protected_cb = "VUID-vkCmdDrawIndexedIndirect-commandBuffer-02711"; |
| 436 | indirect_contiguous_memory = "VUID-vkCmdDrawIndexedIndirect-buffer-02708"; |
| 437 | indirect_buffer_bit = "VUID-vkCmdDrawIndexedIndirect-buffer-02709"; |
| 438 | viewport_count = "VUID-vkCmdDrawIndexedIndirect-viewportCount-03417"; |
| 439 | scissor_count = "VUID-vkCmdDrawIndexedIndirect-scissorCount-03418"; |
| 440 | viewport_scissor_count = "VUID-vkCmdDrawIndexedIndirect-viewportCount-03419"; |
| 441 | primitive_topology = "VUID-vkCmdDrawIndexedIndirect-primitiveTopology-03420"; |
| 442 | corner_sampled_address_mode = "VUID-vkCmdDrawIndexedIndirect-flags-02696"; |
| 443 | subpass_input = "VUID-vkCmdDrawIndexedIndirect-None-02686"; |
| 444 | imageview_atomic = "VUID-vkCmdDrawIndexedIndirect-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 445 | push_constants_set = "VUID-vkCmdDrawIndexedIndirect-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 446 | image_subresources_render_pass_write = "VUID-vkCmdDrawIndexedIndirect-None-06537"; |
| 447 | image_subresources_subpass_read = "VUID-vkCmdDrawIndexedIndirect-None-06538"; |
| 448 | image_subresources_subpass_write = "VUID-vkCmdDrawIndexedIndirect-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 449 | descriptor_valid = "VUID-vkCmdDrawIndexedIndirect-None-02699"; |
| 450 | sampler_imageview_type = "VUID-vkCmdDrawIndexedIndirect-None-02702"; |
| 451 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawIndexedIndirect-None-02703"; |
| 452 | sampler_bias_offset = "VUID-vkCmdDrawIndexedIndirect-None-02704"; |
| 453 | vertex_binding_attribute = "VUID-vkCmdDrawIndexedIndirect-None-02721"; |
| 454 | dynamic_state_setting_commands = "VUID-vkCmdDrawIndexedIndirect-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 455 | rasterization_samples = "VUID-vkCmdDrawIndexedIndirect-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 456 | msrtss_rasterization_samples = "VUID-vkCmdDrawIndexedIndirect-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 457 | unprotected_command_buffer = "VUID-vkCmdDrawIndexedIndirect-commandBuffer-02707"; |
| 458 | max_multiview_instance_index = "VUID-vkCmdDrawIndexedIndirect-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 459 | img_filter_cubic = "VUID-vkCmdDrawIndexedIndirect-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 460 | filter_cubic = "VUID-vkCmdDrawIndexedIndirect-filterCubic-02694"; |
| 461 | filter_cubic_min_max = "VUID-vkCmdDrawIndexedIndirect-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 462 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawIndexedIndirect-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 463 | patch_control_points = "VUID-vkCmdDrawIndexedIndirect-None-04875"; |
| 464 | rasterizer_discard_enable = "VUID-vkCmdDrawIndexedIndirect-None-04876"; |
| 465 | depth_bias_enable = "VUID-vkCmdDrawIndexedIndirect-None-04877"; |
| 466 | logic_op = "VUID-vkCmdDrawIndexedIndirect-logicOp-04878"; |
| 467 | primitive_restart_enable = "VUID-vkCmdDrawIndexedIndirect-None-04879"; |
| 468 | vertex_input_binding_stride = "VUID-vkCmdDrawIndexedIndirect-pStrides-04884"; |
| 469 | vertex_input = kVUID_Core_CmdDrawIndexedIndirect_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 470 | blend_enable = "VUID-vkCmdDrawIndexedIndirect-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 471 | color_write_enable = "VUID-vkCmdDrawIndexedIndirect-attachmentCount-06667"; |
Aaron Hagan | 92a44f8 | 2021-11-19 09:34:56 -0500 | [diff] [blame] | 472 | dynamic_rendering_view_mask = "VUID-vkCmdDrawIndexedIndirect-viewMask-06178"; |
| 473 | dynamic_rendering_color_count = "VUID-vkCmdDrawIndexedIndirect-colorAttachmentCount-06179"; |
| 474 | dynamic_rendering_color_formats = "VUID-vkCmdDrawIndexedIndirect-colorAttachmentCount-06180"; |
| 475 | dynamic_rendering_depth_format = "VUID-vkCmdDrawIndexedIndirect-pDepthAttachment-06181"; |
| 476 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawIndexedIndirect-pStencilAttachment-06182"; |
| 477 | dynamic_rendering_fsr = "VUID-vkCmdDrawIndexedIndirect-imageView-06183"; |
| 478 | dynamic_rendering_fdm = "VUID-vkCmdDrawIndexedIndirect-imageView-06184"; |
Aaron Hagan | 09a0e17 | 2021-11-19 21:18:33 -0500 | [diff] [blame] | 479 | dynamic_rendering_color_sample = "VUID-vkCmdDrawIndexedIndirect-colorAttachmentCount-06185"; |
| 480 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawIndexedIndirect-pDepthAttachment-06186"; |
| 481 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawIndexedIndirect-pStencilAttachment-06187"; |
| 482 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawIndexedIndirect-colorAttachmentCount-06188"; |
Aaron Hagan | aca5044 | 2021-12-07 22:26:29 -0500 | [diff] [blame] | 483 | dynamic_rendering_06189 = "VUID-vkCmdDrawIndexedIndirect-pDepthAttachment-06189"; |
| 484 | dynamic_rendering_06190 = "VUID-vkCmdDrawIndexedIndirect-pStencilAttachment-06190"; |
| 485 | dynamic_rendering_06198 = "VUID-vkCmdDrawIndexedIndirect-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 486 | dynamic_rendering_07285 = "VUID-vkCmdDrawIndexedIndirect-multisampledRenderToSingleSampled-07285"; |
| 487 | dynamic_rendering_07286 = "VUID-vkCmdDrawIndexedIndirect-multisampledRenderToSingleSampled-07286"; |
| 488 | dynamic_rendering_07287 = "VUID-vkCmdDrawIndexedIndirect-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 489 | storage_image_read_without_format = "VUID-vkCmdDrawIndexedIndirect-OpTypeImage-07028"; |
| 490 | storage_image_write_without_format = "VUID-vkCmdDrawIndexedIndirect-OpTypeImage-07027"; |
| 491 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawIndexedIndirect-OpTypeImage-07030"; |
| 492 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawIndexedIndirect-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 493 | depth_compare_sample = "VUID-vkCmdDrawIndexedIndirect-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 494 | dynamic_sample_locations = "VUID-vkCmdDrawIndexedIndirect-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 495 | primitives_generated = "VUID-vkCmdDrawIndexedIndirect-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 496 | primitives_generated_streams = "VUID-vkCmdDrawIndexedIndirect-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 497 | } |
| 498 | }; |
| 499 | |
| 500 | struct DispatchVuidsCmdDispatch : DrawDispatchVuid { |
| 501 | DispatchVuidsCmdDispatch() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 502 | pipeline_bound = "VUID-vkCmdDispatch-None-02700"; |
Mark Lobodzinski | 02d3755 | 2020-12-28 13:29:46 -0700 | [diff] [blame] | 503 | dynamic_state = "VUID-vkCmdDispatch-commandBuffer-02701"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 504 | compatible_pipeline = "VUID-vkCmdDispatch-None-02697"; |
| 505 | linear_sampler = "VUID-vkCmdDispatch-magFilter-04553"; |
| 506 | cubic_sampler = "VUID-vkCmdDispatch-None-02692"; |
| 507 | corner_sampled_address_mode = "VUID-vkCmdDispatch-flags-02696"; |
| 508 | imageview_atomic = "VUID-vkCmdDispatch-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 509 | push_constants_set = "VUID-vkCmdDispatch-maintenance4-06425"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 510 | descriptor_valid = "VUID-vkCmdDispatch-None-02699"; |
| 511 | sampler_imageview_type = "VUID-vkCmdDispatch-None-02702"; |
| 512 | sampler_implicitLod_dref_proj = "VUID-vkCmdDispatch-None-02703"; |
| 513 | sampler_bias_offset = "VUID-vkCmdDispatch-None-02704"; |
| 514 | dynamic_state_setting_commands = "VUID-vkCmdDispatch-None-02859"; |
| 515 | unprotected_command_buffer = "VUID-vkCmdDispatch-commandBuffer-02707"; |
| 516 | protected_command_buffer = "VUID-vkCmdDispatch-commandBuffer-02712"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 517 | img_filter_cubic = "VUID-vkCmdDispatch-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 518 | filter_cubic = "VUID-vkCmdDispatch-filterCubic-02694"; |
| 519 | filter_cubic_min_max = "VUID-vkCmdDispatch-filterCubicMinmax-02695"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 520 | storage_image_read_without_format = "VUID-vkCmdDispatch-OpTypeImage-07028"; |
| 521 | storage_image_write_without_format = "VUID-vkCmdDispatch-OpTypeImage-07027"; |
| 522 | storage_texel_buffer_read_without_format = "VUID-vkCmdDispatch-OpTypeImage-07030"; |
| 523 | storage_texel_buffer_write_without_format = "VUID-vkCmdDispatch-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 524 | depth_compare_sample = "VUID-vkCmdDispatch-None-06479"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 525 | } |
| 526 | }; |
| 527 | |
| 528 | struct DispatchVuidsCmdDispatchIndirect : DrawDispatchVuid { |
| 529 | DispatchVuidsCmdDispatchIndirect() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 530 | pipeline_bound = "VUID-vkCmdDispatchIndirect-None-02700"; |
Mark Lobodzinski | 02d3755 | 2020-12-28 13:29:46 -0700 | [diff] [blame] | 531 | dynamic_state = "VUID-vkCmdDispatchIndirect-commandBuffer-02701"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 532 | compatible_pipeline = "VUID-vkCmdDispatchIndirect-None-02697"; |
| 533 | linear_sampler = "VUID-vkCmdDispatchIndirect-magFilter-04553"; |
| 534 | cubic_sampler = "VUID-vkCmdDispatchIndirect-None-02692"; |
| 535 | indirect_protected_cb = "VUID-vkCmdDispatchIndirect-commandBuffer-02711"; |
| 536 | indirect_contiguous_memory = "VUID-vkCmdDispatchIndirect-buffer-02708"; |
| 537 | indirect_buffer_bit = "VUID-vkCmdDispatchIndirect-buffer-02709"; |
| 538 | corner_sampled_address_mode = "VUID-vkCmdDispatchIndirect-flags-02696"; |
| 539 | imageview_atomic = "VUID-vkCmdDispatchIndirect-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 540 | push_constants_set = "VUID-vkCmdDispatchIndirect-maintenance4-06425"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 541 | descriptor_valid = "VUID-vkCmdDispatchIndirect-None-02699"; |
| 542 | sampler_imageview_type = "VUID-vkCmdDispatchIndirect-None-02702"; |
| 543 | sampler_implicitLod_dref_proj = "VUID-vkCmdDispatchIndirect-None-02703"; |
| 544 | sampler_bias_offset = "VUID-vkCmdDispatchIndirect-None-02704"; |
| 545 | dynamic_state_setting_commands = "VUID-vkCmdDispatchIndirect-None-02859"; |
| 546 | unprotected_command_buffer = "VUID-vkCmdDispatchIndirect-commandBuffer-02707"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 547 | img_filter_cubic = "VUID-vkCmdDispatchIndirect-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 548 | filter_cubic = "VUID-vkCmdDispatchIndirect-filterCubic-02694"; |
| 549 | filter_cubic_min_max = "VUID-vkCmdDispatchIndirect-filterCubicMinmax-02695"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 550 | storage_image_read_without_format = "VUID-vkCmdDispatchIndirect-OpTypeImage-07028"; |
| 551 | storage_image_write_without_format = "VUID-vkCmdDispatchIndirect-OpTypeImage-07027"; |
| 552 | storage_texel_buffer_read_without_format = "VUID-vkCmdDispatchIndirect-OpTypeImage-07030"; |
| 553 | storage_texel_buffer_write_without_format = "VUID-vkCmdDispatchIndirect-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 554 | depth_compare_sample = "VUID-vkCmdDispatchIndirect-None-06479"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 555 | } |
| 556 | }; |
| 557 | |
| 558 | struct DispatchVuidsCmdDrawIndirectCount : DrawDispatchVuid { |
| 559 | DispatchVuidsCmdDrawIndirectCount() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 560 | pipeline_bound = "VUID-vkCmdDrawIndirectCount-None-02700"; |
| 561 | dynamic_state = "VUID-vkCmdDrawIndirectCount-commandBuffer-02701"; |
| 562 | vertex_binding = "VUID-vkCmdDrawIndirectCount-None-04007"; |
| 563 | vertex_binding_null = "VUID-vkCmdDrawIndirectCount-None-04008"; |
| 564 | compatible_pipeline = "VUID-vkCmdDrawIndirectCount-None-02697"; |
| 565 | render_pass_compatible = "VUID-vkCmdDrawIndirectCount-renderPass-02684"; |
| 566 | subpass_index = "VUID-vkCmdDrawIndirectCount-subpass-02685"; |
| 567 | sample_location = "VUID-vkCmdDrawIndirectCount-sampleLocationsEnable-02689"; |
| 568 | linear_sampler = "VUID-vkCmdDrawIndirectCount-magFilter-04553"; |
| 569 | cubic_sampler = "VUID-vkCmdDrawIndirectCount-None-02692"; |
| 570 | indirect_protected_cb = "VUID-vkCmdDrawIndirectCount-commandBuffer-02711"; |
| 571 | indirect_contiguous_memory = "VUID-vkCmdDrawIndirectCount-buffer-02708"; |
sjfricke | 177bbb6 | 2022-06-02 17:37:03 +0900 | [diff] [blame] | 572 | indirect_count_contiguous_memory = "VUID-vkCmdDrawIndirectCount-countBuffer-02714"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 573 | indirect_buffer_bit = "VUID-vkCmdDrawIndirectCount-buffer-02709"; |
sjfricke | 177bbb6 | 2022-06-02 17:37:03 +0900 | [diff] [blame] | 574 | indirect_count_buffer_bit = "VUID-vkCmdDrawIndirectCount-countBuffer-02715"; |
| 575 | indirect_count_offset = "VUID-vkCmdDrawIndirectCount-countBufferOffset-04129"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 576 | viewport_count = "VUID-vkCmdDrawIndirectCount-viewportCount-03417"; |
| 577 | scissor_count = "VUID-vkCmdDrawIndirectCount-scissorCount-03418"; |
| 578 | viewport_scissor_count = "VUID-vkCmdDrawIndirectCount-viewportCount-03419"; |
| 579 | primitive_topology = "VUID-vkCmdDrawIndirectCount-primitiveTopology-03420"; |
| 580 | corner_sampled_address_mode = "VUID-vkCmdDrawIndirectCount-flags-02696"; |
| 581 | subpass_input = "VUID-vkCmdDrawIndirectCount-None-02686"; |
| 582 | imageview_atomic = "VUID-vkCmdDrawIndirectCount-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 583 | push_constants_set = "VUID-vkCmdDrawIndirectCount-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 584 | image_subresources_render_pass_write = "VUID-vkCmdDrawIndirectCount-None-06537"; |
| 585 | image_subresources_subpass_read = "VUID-vkCmdDrawIndirectCount-None-06538"; |
| 586 | image_subresources_subpass_write = "VUID-vkCmdDrawIndirectCount-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 587 | descriptor_valid = "VUID-vkCmdDrawIndirectCount-None-02699"; |
| 588 | sampler_imageview_type = "VUID-vkCmdDrawIndirectCount-None-02702"; |
| 589 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawIndirectCount-None-02703"; |
| 590 | sampler_bias_offset = "VUID-vkCmdDrawIndirectCount-None-02704"; |
| 591 | vertex_binding_attribute = "VUID-vkCmdDrawIndirectCount-None-02721"; |
| 592 | dynamic_state_setting_commands = "VUID-vkCmdDrawIndirectCount-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 593 | rasterization_samples = "VUID-vkCmdDrawIndirectCount-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 594 | msrtss_rasterization_samples = "VUID-vkCmdDrawIndirectCount-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 595 | unprotected_command_buffer = "VUID-vkCmdDrawIndirectCount-commandBuffer-02707"; |
| 596 | max_multiview_instance_index = "VUID-vkCmdDrawIndirectCount-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 597 | img_filter_cubic = "VUID-vkCmdDrawIndirectCount-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 598 | filter_cubic = "VUID-vkCmdDrawIndirectCount-filterCubic-02694"; |
| 599 | filter_cubic_min_max = "VUID-vkCmdDrawIndirectCount-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 600 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawIndirectCount-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 601 | patch_control_points = "VUID-vkCmdDrawIndirectCount-None-04875"; |
| 602 | rasterizer_discard_enable = "VUID-vkCmdDrawIndirectCount-None-04876"; |
| 603 | depth_bias_enable = "VUID-vkCmdDrawIndirectCount-None-04877"; |
| 604 | logic_op = "VUID-vkCmdDrawIndirectCount-logicOp-04878"; |
| 605 | primitive_restart_enable = "VUID-vkCmdDrawIndirectCount-None-04879"; |
| 606 | vertex_input_binding_stride = "VUID-vkCmdDrawIndirectCount-pStrides-04884"; |
| 607 | vertex_input = kVUID_Core_CmdDrawIndirectCount_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 608 | blend_enable = "VUID-vkCmdDrawIndirectCount-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 609 | color_write_enable = "VUID-vkCmdDrawIndirectCount-attachmentCount-06667"; |
stusmith | edc4e39 | 2021-12-24 15:22:16 +0000 | [diff] [blame] | 610 | dynamic_rendering_view_mask = "VUID-vkCmdDrawIndirectCount-viewMask-06178"; |
| 611 | dynamic_rendering_color_count = "VUID-vkCmdDrawIndirectCount-colorAttachmentCount-06179"; |
| 612 | dynamic_rendering_color_formats = "VUID-vkCmdDrawIndirectCount-colorAttachmentCount-06180"; |
| 613 | dynamic_rendering_depth_format = "VUID-vkCmdDrawIndirectCount-pDepthAttachment-06181"; |
| 614 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawIndirectCount-pStencilAttachment-06182"; |
| 615 | dynamic_rendering_fsr = "VUID-vkCmdDrawIndirectCount-imageView-06183"; |
| 616 | dynamic_rendering_fdm = "VUID-vkCmdDrawIndirectCount-imageView-06184"; |
| 617 | dynamic_rendering_color_sample = "VUID-vkCmdDrawIndirectCount-colorAttachmentCount-06185"; |
| 618 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawIndirectCount-pDepthAttachment-06186"; |
| 619 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawIndirectCount-pStencilAttachment-06187"; |
| 620 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawIndirectCount-colorAttachmentCount-06188"; |
| 621 | dynamic_rendering_06189 = "VUID-vkCmdDrawIndirectCount-pDepthAttachment-06189"; |
| 622 | dynamic_rendering_06190 = "VUID-vkCmdDrawIndirectCount-pStencilAttachment-06190"; |
| 623 | dynamic_rendering_06198 = "VUID-vkCmdDrawIndirectCount-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 624 | dynamic_rendering_07285 = "VUID-vkCmdDrawIndirectCount-multisampledRenderToSingleSampled-07285"; |
| 625 | dynamic_rendering_07286 = "VUID-vkCmdDrawIndirectCount-multisampledRenderToSingleSampled-07286"; |
| 626 | dynamic_rendering_07287 = "VUID-vkCmdDrawIndirectCount-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 627 | storage_image_read_without_format = "VUID-vkCmdDrawIndirectCount-OpTypeImage-07028"; |
| 628 | storage_image_write_without_format = "VUID-vkCmdDrawIndirectCount-OpTypeImage-07027"; |
| 629 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawIndirectCount-OpTypeImage-07030"; |
| 630 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawIndirectCount-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 631 | depth_compare_sample = "VUID-vkCmdDrawIndirectCount-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 632 | dynamic_sample_locations = "VUID-vkCmdDrawIndirectCount-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 633 | primitives_generated = "VUID-vkCmdDrawIndirectCount-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 634 | primitives_generated_streams = "VUID-vkCmdDrawIndirectCount-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 635 | } |
| 636 | }; |
| 637 | |
| 638 | struct DispatchVuidsCmdDrawIndexedIndirectCount : DrawDispatchVuid { |
| 639 | DispatchVuidsCmdDrawIndexedIndirectCount() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 640 | pipeline_bound = "VUID-vkCmdDrawIndexedIndirectCount-None-02700"; |
| 641 | dynamic_state = "VUID-vkCmdDrawIndexedIndirectCount-commandBuffer-02701"; |
| 642 | vertex_binding = "VUID-vkCmdDrawIndexedIndirectCount-None-04007"; |
| 643 | vertex_binding_null = "VUID-vkCmdDrawIndexedIndirectCount-None-04008"; |
| 644 | compatible_pipeline = "VUID-vkCmdDrawIndexedIndirectCount-None-02697"; |
| 645 | render_pass_compatible = "VUID-vkCmdDrawIndexedIndirectCount-renderPass-02684"; |
| 646 | subpass_index = "VUID-vkCmdDrawIndexedIndirectCount-subpass-02685"; |
| 647 | sample_location = "VUID-vkCmdDrawIndexedIndirectCount-sampleLocationsEnable-02689"; |
| 648 | linear_sampler = "VUID-vkCmdDrawIndexedIndirectCount-magFilter-04553"; |
| 649 | cubic_sampler = "VUID-vkCmdDrawIndexedIndirectCount-None-02692"; |
| 650 | indirect_protected_cb = "VUID-vkCmdDrawIndexedIndirectCount-commandBuffer-02711"; |
| 651 | indirect_contiguous_memory = "VUID-vkCmdDrawIndexedIndirectCount-buffer-02708"; |
sjfricke | 177bbb6 | 2022-06-02 17:37:03 +0900 | [diff] [blame] | 652 | indirect_count_contiguous_memory = "VUID-vkCmdDrawIndexedIndirectCount-countBuffer-02714"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 653 | indirect_buffer_bit = "VUID-vkCmdDrawIndexedIndirectCount-buffer-02709"; |
sjfricke | 177bbb6 | 2022-06-02 17:37:03 +0900 | [diff] [blame] | 654 | indirect_count_buffer_bit = "VUID-vkCmdDrawIndexedIndirectCount-countBuffer-02715"; |
| 655 | indirect_count_offset = "VUID-vkCmdDrawIndexedIndirectCount-countBufferOffset-04129"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 656 | viewport_count = "VUID-vkCmdDrawIndexedIndirectCount-viewportCount-03417"; |
| 657 | scissor_count = "VUID-vkCmdDrawIndexedIndirectCount-scissorCount-03418"; |
| 658 | viewport_scissor_count = "VUID-vkCmdDrawIndexedIndirectCount-viewportCount-03419"; |
| 659 | primitive_topology = "VUID-vkCmdDrawIndexedIndirectCount-primitiveTopology-03420"; |
| 660 | corner_sampled_address_mode = "VUID-vkCmdDrawIndexedIndirectCount-flags-02696"; |
| 661 | subpass_input = "VUID-vkCmdDrawIndexedIndirectCount-None-02686"; |
| 662 | imageview_atomic = "VUID-vkCmdDrawIndexedIndirectCount-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 663 | push_constants_set = "VUID-vkCmdDrawIndexedIndirectCount-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 664 | image_subresources_render_pass_write = "VUID-vkCmdDrawIndexedIndirectCount-None-06537"; |
| 665 | image_subresources_subpass_read = "VUID-vkCmdDrawIndexedIndirectCount-None-06538"; |
| 666 | image_subresources_subpass_write = "VUID-vkCmdDrawIndexedIndirectCount-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 667 | descriptor_valid = "VUID-vkCmdDrawIndexedIndirectCount-None-02699"; |
| 668 | sampler_imageview_type = "VUID-vkCmdDrawIndexedIndirectCount-None-02702"; |
| 669 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawIndexedIndirectCount-None-02703"; |
| 670 | sampler_bias_offset = "VUID-vkCmdDrawIndexedIndirectCount-None-02704"; |
| 671 | vertex_binding_attribute = "VUID-vkCmdDrawIndexedIndirectCount-None-02721"; |
| 672 | dynamic_state_setting_commands = "VUID-vkCmdDrawIndexedIndirectCount-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 673 | rasterization_samples = "VUID-vkCmdDrawIndexedIndirectCount-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 674 | msrtss_rasterization_samples = "VUID-vkCmdDrawIndexedIndirectCount-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 675 | unprotected_command_buffer = "VUID-vkCmdDrawIndexedIndirectCount-commandBuffer-02707"; |
| 676 | max_multiview_instance_index = "VUID-vkCmdDrawIndexedIndirectCount-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 677 | img_filter_cubic = "VUID-vkCmdDrawIndexedIndirectCount-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 678 | filter_cubic = "VUID-vkCmdDrawIndexedIndirectCount-filterCubic-02694"; |
| 679 | filter_cubic_min_max = "VUID-vkCmdDrawIndexedIndirectCount-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 680 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawIndexedIndirectCount-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 681 | patch_control_points = "VUID-vkCmdDrawIndexedIndirectCount-None-04875"; |
| 682 | rasterizer_discard_enable = "VUID-vkCmdDrawIndexedIndirectCount-None-04876"; |
| 683 | depth_bias_enable = "VUID-vkCmdDrawIndexedIndirectCount-None-04877"; |
| 684 | logic_op = "VUID-vkCmdDrawIndexedIndirectCount-logicOp-04878"; |
| 685 | primitive_restart_enable = "VUID-vkCmdDrawIndexedIndirectCount-None-04879"; |
| 686 | vertex_input_binding_stride = "VUID-vkCmdDrawIndexedIndirectCount-pStrides-04884"; |
| 687 | vertex_input = kVUID_Core_CmdDrawIndexedIndirectCount_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 688 | blend_enable = "VUID-vkCmdDrawIndexedIndirectCount-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 689 | color_write_enable = "VUID-vkCmdDrawIndexedIndirectCount-attachmentCount-06667"; |
Aaron Hagan | aca5044 | 2021-12-07 22:26:29 -0500 | [diff] [blame] | 690 | dynamic_rendering_view_mask = "VUID-vkCmdDrawIndexedIndirectCount-viewMask-06178"; |
| 691 | dynamic_rendering_color_count = "VUID-vkCmdDrawIndexedIndirectCount-colorAttachmentCount-06179"; |
| 692 | dynamic_rendering_color_formats = "VUID-vkCmdDrawIndexedIndirectCount-colorAttachmentCount-06180"; |
| 693 | dynamic_rendering_depth_format = "VUID-vkCmdDrawIndexedIndirectCount-pDepthAttachment-06181"; |
| 694 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawIndexedIndirectCount-pStencilAttachment-06182"; |
| 695 | dynamic_rendering_fsr = "VUID-vkCmdDrawIndexedIndirectCount-imageView-06183"; |
| 696 | dynamic_rendering_fdm = "VUID-vkCmdDrawIndexedIndirectCount-imageView-06184"; |
| 697 | dynamic_rendering_color_sample = "VUID-vkCmdDrawIndexedIndirectCount-colorAttachmentCount-06185"; |
| 698 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawIndexedIndirectCount-pDepthAttachment-06186"; |
| 699 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawIndexedIndirectCount-pStencilAttachment-06187"; |
| 700 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawIndexedIndirectCount-colorAttachmentCount-06188"; |
| 701 | dynamic_rendering_06189 = "VUID-vkCmdDrawIndexedIndirectCount-pDepthAttachment-06189"; |
| 702 | dynamic_rendering_06190 = "VUID-vkCmdDrawIndexedIndirectCount-pStencilAttachment-06190"; |
| 703 | dynamic_rendering_06198 = "VUID-vkCmdDrawIndexedIndirectCount-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 704 | dynamic_rendering_07285 = "VUID-vkCmdDrawIndexedIndirectCount-multisampledRenderToSingleSampled-07285"; |
| 705 | dynamic_rendering_07286 = "VUID-vkCmdDrawIndexedIndirectCount-multisampledRenderToSingleSampled-07286"; |
| 706 | dynamic_rendering_07287 = "VUID-vkCmdDrawIndexedIndirectCount-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 707 | storage_image_read_without_format = "VUID-vkCmdDrawIndexedIndirectCount-OpTypeImage-07028"; |
| 708 | storage_image_write_without_format = "VUID-vkCmdDrawIndexedIndirectCount-OpTypeImage-07027"; |
| 709 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawIndexedIndirectCount-OpTypeImage-07030"; |
| 710 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawIndexedIndirectCount-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 711 | depth_compare_sample = "VUID-vkCmdDrawIndexedIndirectCount-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 712 | dynamic_sample_locations = "VUID-vkCmdDrawIndexedIndirectCount-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 713 | primitives_generated = "VUID-vkCmdDrawIndexedIndirectCount-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 714 | primitives_generated_streams = "VUID-vkCmdDrawIndexedIndirectCount-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 715 | } |
| 716 | }; |
| 717 | |
| 718 | struct DispatchVuidsCmdTraceRaysNV: DrawDispatchVuid { |
| 719 | DispatchVuidsCmdTraceRaysNV() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 720 | pipeline_bound = "VUID-vkCmdTraceRaysNV-None-02700"; |
| 721 | dynamic_state = "VUID-vkCmdTraceRaysNV-commandBuffer-02701"; |
| 722 | compatible_pipeline = "VUID-vkCmdTraceRaysNV-None-02697"; |
| 723 | linear_sampler = "VUID-vkCmdTraceRaysNV-magFilter-04553"; |
| 724 | cubic_sampler = "VUID-vkCmdTraceRaysNV-None-02692"; |
| 725 | corner_sampled_address_mode = "VUID-vkCmdTraceRaysNV-flags-02696"; |
| 726 | imageview_atomic = "VUID-vkCmdTraceRaysNV-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 727 | push_constants_set = "VUID-vkCmdTraceRaysNV-maintenance4-06425"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 728 | descriptor_valid = "VUID-vkCmdTraceRaysNV-None-02699"; |
| 729 | sampler_imageview_type = "VUID-vkCmdTraceRaysNV-None-02702"; |
| 730 | sampler_implicitLod_dref_proj = "VUID-vkCmdTraceRaysNV-None-02703"; |
| 731 | sampler_bias_offset = "VUID-vkCmdTraceRaysNV-None-02704"; |
| 732 | dynamic_state_setting_commands = "VUID-vkCmdTraceRaysNV-None-02859"; |
| 733 | unprotected_command_buffer = "VUID-vkCmdTraceRaysNV-commandBuffer-02707"; |
sfricke-samsung | a3c47d1 | 2021-09-30 13:34:54 -0700 | [diff] [blame] | 734 | ray_query_protected_cb = "VUID-vkCmdTraceRaysNV-commandBuffer-04624"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 735 | img_filter_cubic = "VUID-vkCmdTraceRaysNV-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 736 | filter_cubic = "VUID-vkCmdTraceRaysNV-filterCubic-02694"; |
| 737 | filter_cubic_min_max = "VUID-vkCmdTraceRaysNV-filterCubicMinmax-02695"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 738 | storage_image_read_without_format = "VUID-vkCmdTraceRaysNV-OpTypeImage-07028"; |
| 739 | storage_image_write_without_format = "VUID-vkCmdTraceRaysNV-OpTypeImage-07027"; |
| 740 | storage_texel_buffer_read_without_format = "VUID-vkCmdTraceRaysNV-OpTypeImage-07030"; |
| 741 | storage_texel_buffer_write_without_format = "VUID-vkCmdTraceRaysNV-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 742 | depth_compare_sample = "VUID-vkCmdTraceRaysNV-None-06479"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 743 | } |
| 744 | }; |
| 745 | |
| 746 | struct DispatchVuidsCmdTraceRaysKHR: DrawDispatchVuid { |
| 747 | DispatchVuidsCmdTraceRaysKHR() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 748 | pipeline_bound = "VUID-vkCmdTraceRaysKHR-None-02700"; |
| 749 | dynamic_state = "VUID-vkCmdTraceRaysKHR-commandBuffer-02701"; |
| 750 | compatible_pipeline = "VUID-vkCmdTraceRaysKHR-None-02697"; |
| 751 | linear_sampler = "VUID-vkCmdTraceRaysKHR-magFilter-04553"; |
| 752 | cubic_sampler = "VUID-vkCmdTraceRaysKHR-None-02692"; |
| 753 | corner_sampled_address_mode = "VUID-vkCmdTraceRaysKHR-flags-02696"; |
| 754 | imageview_atomic = "VUID-vkCmdTraceRaysKHR-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 755 | push_constants_set = "VUID-vkCmdTraceRaysKHR-maintenance4-06425"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 756 | descriptor_valid = "VUID-vkCmdTraceRaysKHR-None-02699"; |
| 757 | sampler_imageview_type = "VUID-vkCmdTraceRaysKHR-None-02702"; |
| 758 | sampler_implicitLod_dref_proj = "VUID-vkCmdTraceRaysKHR-None-02703"; |
| 759 | sampler_bias_offset = "VUID-vkCmdTraceRaysKHR-None-02704"; |
| 760 | dynamic_state_setting_commands = "VUID-vkCmdTraceRaysKHR-None-02859"; |
| 761 | unprotected_command_buffer = "VUID-vkCmdTraceRaysKHR-commandBuffer-02707"; |
Mike Schuchardt | 840f125 | 2022-05-11 11:31:25 -0700 | [diff] [blame] | 762 | ray_query_protected_cb = "VUID-vkCmdTraceRaysKHR-commandBuffer-03635"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 763 | img_filter_cubic = "VUID-vkCmdTraceRaysKHR-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 764 | filter_cubic = "VUID-vkCmdTraceRaysKHR-filterCubic-02694"; |
| 765 | filter_cubic_min_max = "VUID-vkCmdTraceRaysKHR-filterCubicMinmax-02695"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 766 | storage_image_read_without_format = "VUID-vkCmdTraceRaysKHR-OpTypeImage-07028"; |
| 767 | storage_image_write_without_format = "VUID-vkCmdTraceRaysKHR-OpTypeImage-07027"; |
| 768 | storage_texel_buffer_read_without_format = "VUID-vkCmdTraceRaysKHR-OpTypeImage-07030"; |
| 769 | storage_texel_buffer_write_without_format = "VUID-vkCmdTraceRaysKHR-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 770 | depth_compare_sample = "VUID-vkCmdTraceRaysKHR-None-06479"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 771 | } |
| 772 | }; |
| 773 | |
| 774 | struct DispatchVuidsCmdTraceRaysIndirectKHR: DrawDispatchVuid { |
| 775 | DispatchVuidsCmdTraceRaysIndirectKHR() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 776 | pipeline_bound = "VUID-vkCmdTraceRaysIndirectKHR-None-02700"; |
| 777 | dynamic_state = "VUID-vkCmdTraceRaysIndirectKHR-commandBuffer-02701"; |
| 778 | compatible_pipeline = "VUID-vkCmdTraceRaysIndirectKHR-None-02697"; |
| 779 | linear_sampler = "VUID-vkCmdTraceRaysIndirectKHR-magFilter-04553"; |
| 780 | cubic_sampler = "VUID-vkCmdTraceRaysIndirectKHR-None-02692"; |
Shannon McPherson | 57255a6 | 2020-12-23 16:00:54 -0700 | [diff] [blame] | 781 | indirect_contiguous_memory = "VUID-vkCmdTraceRaysIndirectKHR-indirectDeviceAddress-03632"; |
| 782 | indirect_buffer_bit = "VUID-vkCmdTraceRaysIndirectKHR-indirectDeviceAddress-03633"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 783 | corner_sampled_address_mode = "VUID-vkCmdTraceRaysIndirectKHR-flags-02696"; |
| 784 | imageview_atomic = "VUID-vkCmdTraceRaysIndirectKHR-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 785 | push_constants_set = "VUID-vkCmdTraceRaysIndirectKHR-maintenance4-06425"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 786 | descriptor_valid = "VUID-vkCmdTraceRaysIndirectKHR-None-02699"; |
| 787 | sampler_imageview_type = "VUID-vkCmdTraceRaysIndirectKHR-None-02702"; |
| 788 | sampler_implicitLod_dref_proj = "VUID-vkCmdTraceRaysIndirectKHR-None-02703"; |
| 789 | sampler_bias_offset = "VUID-vkCmdTraceRaysIndirectKHR-None-02704"; |
| 790 | dynamic_state_setting_commands = "VUID-vkCmdTraceRaysIndirectKHR-None-02859"; |
| 791 | unprotected_command_buffer = "VUID-vkCmdTraceRaysIndirectKHR-commandBuffer-02707"; |
sfricke-samsung | a3c47d1 | 2021-09-30 13:34:54 -0700 | [diff] [blame] | 792 | ray_query_protected_cb = "VUID-vkCmdTraceRaysIndirectKHR-commandBuffer-03635"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 793 | img_filter_cubic = "VUID-vkCmdTraceRaysIndirectKHR-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 794 | filter_cubic = "VUID-vkCmdTraceRaysIndirectKHR-filterCubic-02694"; |
| 795 | filter_cubic_min_max = "VUID-vkCmdTraceRaysIndirectKHR-filterCubicMinmax-02695"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 796 | storage_image_read_without_format = "VUID-vkCmdTraceRaysIndirectKHR-OpTypeImage-07028"; |
| 797 | storage_image_write_without_format = "VUID-vkCmdTraceRaysIndirectKHR-OpTypeImage-07027"; |
| 798 | storage_texel_buffer_read_without_format = "VUID-vkCmdTraceRaysIndirectKHR-OpTypeImage-07030"; |
| 799 | storage_texel_buffer_write_without_format = "VUID-vkCmdTraceRaysIndirectKHR-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 800 | depth_compare_sample = "VUID-vkCmdTraceRaysIndirectKHR-None-06479"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 801 | } |
| 802 | }; |
| 803 | |
sfricke-samsung | f91881c | 2022-03-31 01:12:00 -0500 | [diff] [blame] | 804 | struct DispatchVuidsCmdTraceRaysIndirect2KHR: DrawDispatchVuid { |
| 805 | DispatchVuidsCmdTraceRaysIndirect2KHR() : DrawDispatchVuid() { |
| 806 | pipeline_bound = "VUID-vkCmdTraceRaysIndirect2KHR-None-02700"; |
| 807 | dynamic_state = "VUID-vkCmdTraceRaysIndirect2KHR-commandBuffer-02701"; |
| 808 | compatible_pipeline = "VUID-vkCmdTraceRaysIndirect2KHR-None-02697"; |
| 809 | linear_sampler = "VUID-vkCmdTraceRaysIndirect2KHR-magFilter-04553"; |
| 810 | cubic_sampler = "VUID-vkCmdTraceRaysIndirect2KHR-None-02692"; |
| 811 | indirect_contiguous_memory = "VUID-vkCmdTraceRaysIndirect2KHR-indirectDeviceAddress-03632"; |
| 812 | indirect_buffer_bit = "VUID-vkCmdTraceRaysIndirect2KHR-indirectDeviceAddress-03633"; |
| 813 | corner_sampled_address_mode = "VUID-vkCmdTraceRaysIndirect2KHR-flags-02696"; |
| 814 | imageview_atomic = "VUID-vkCmdTraceRaysIndirect2KHR-None-02691"; |
| 815 | push_constants_set = "VUID-vkCmdTraceRaysIndirect2KHR-maintenance4-06425"; |
| 816 | descriptor_valid = "VUID-vkCmdTraceRaysIndirect2KHR-None-02699"; |
| 817 | sampler_imageview_type = "VUID-vkCmdTraceRaysIndirect2KHR-None-02702"; |
| 818 | sampler_implicitLod_dref_proj = "VUID-vkCmdTraceRaysIndirect2KHR-None-02703"; |
| 819 | sampler_bias_offset = "VUID-vkCmdTraceRaysIndirect2KHR-None-02704"; |
| 820 | dynamic_state_setting_commands = "VUID-vkCmdTraceRaysIndirect2KHR-None-02859"; |
| 821 | unprotected_command_buffer = "VUID-vkCmdTraceRaysIndirect2KHR-commandBuffer-02707"; |
| 822 | ray_query_protected_cb = "VUID-vkCmdTraceRaysIndirect2KHR-commandBuffer-03635"; |
| 823 | img_filter_cubic = "VUID-vkCmdTraceRaysIndirect2KHR-None-02693"; |
| 824 | filter_cubic = "VUID-vkCmdTraceRaysIndirect2KHR-filterCubic-02694"; |
| 825 | filter_cubic_min_max = "VUID-vkCmdTraceRaysIndirect2KHR-filterCubicMinmax-02695"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 826 | storage_image_read_without_format = "VUID-vkCmdTraceRaysIndirect2KHR-OpTypeImage-07028"; |
| 827 | storage_image_write_without_format = "VUID-vkCmdTraceRaysIndirect2KHR-OpTypeImage-07027"; |
| 828 | storage_texel_buffer_read_without_format = "VUID-vkCmdTraceRaysIndirect2KHR-OpTypeImage-07030"; |
| 829 | storage_texel_buffer_write_without_format = "VUID-vkCmdTraceRaysIndirect2KHR-OpTypeImage-07029"; |
sfricke-samsung | f91881c | 2022-03-31 01:12:00 -0500 | [diff] [blame] | 830 | depth_compare_sample = "VUID-vkCmdTraceRaysIndirect2KHR-None-06479"; |
| 831 | } |
| 832 | }; |
| 833 | |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 834 | struct DispatchVuidsCmdDrawMeshTasksNV: DrawDispatchVuid { |
| 835 | DispatchVuidsCmdDrawMeshTasksNV() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 836 | pipeline_bound = "VUID-vkCmdDrawMeshTasksNV-None-02700"; |
| 837 | dynamic_state = "VUID-vkCmdDrawMeshTasksNV-commandBuffer-02701"; |
| 838 | compatible_pipeline = "VUID-vkCmdDrawMeshTasksNV-None-02697"; |
| 839 | render_pass_compatible = "VUID-vkCmdDrawMeshTasksNV-renderPass-02684"; |
| 840 | subpass_index = "VUID-vkCmdDrawMeshTasksNV-subpass-02685"; |
| 841 | sample_location = "VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-02689"; |
| 842 | linear_sampler = "VUID-vkCmdDrawMeshTasksNV-magFilter-04553"; |
| 843 | cubic_sampler = "VUID-vkCmdDrawMeshTasksNV-None-02692"; |
| 844 | viewport_count = "VUID-vkCmdDrawMeshTasksNV-viewportCount-03417"; |
| 845 | scissor_count = "VUID-vkCmdDrawMeshTasksNV-scissorCount-03418"; |
| 846 | viewport_scissor_count = "VUID-vkCmdDrawMeshTasksNV-viewportCount-03419"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 847 | corner_sampled_address_mode = "VUID-vkCmdDrawMeshTasksNV-flags-02696"; |
| 848 | subpass_input = "VUID-vkCmdDrawMeshTasksNV-None-02686"; |
| 849 | imageview_atomic = "VUID-vkCmdDrawMeshTasksNV-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 850 | push_constants_set = "VUID-vkCmdDrawMeshTasksNV-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 851 | image_subresources_render_pass_write = "VUID-vkCmdDrawMeshTasksNV-None-06537"; |
| 852 | image_subresources_subpass_read = "VUID-vkCmdDrawMeshTasksNV-None-06538"; |
| 853 | image_subresources_subpass_write = "VUID-vkCmdDrawMeshTasksNV-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 854 | descriptor_valid = "VUID-vkCmdDrawMeshTasksNV-None-02699"; |
| 855 | sampler_imageview_type = "VUID-vkCmdDrawMeshTasksNV-None-02702"; |
| 856 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawMeshTasksNV-None-02703"; |
| 857 | sampler_bias_offset = "VUID-vkCmdDrawMeshTasksNV-None-02704"; |
| 858 | dynamic_state_setting_commands = "VUID-vkCmdDrawMeshTasksNV-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 859 | rasterization_samples = "VUID-vkCmdDrawMeshTasksNV-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 860 | msrtss_rasterization_samples = "VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 861 | unprotected_command_buffer = "VUID-vkCmdDrawMeshTasksNV-commandBuffer-02707"; |
| 862 | max_multiview_instance_index = "VUID-vkCmdDrawMeshTasksNV-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 863 | img_filter_cubic = "VUID-vkCmdDrawMeshTasksNV-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 864 | filter_cubic = "VUID-vkCmdDrawMeshTasksNV-filterCubic-02694"; |
| 865 | filter_cubic_min_max = "VUID-vkCmdDrawMeshTasksNV-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 866 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawMeshTasksNV-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 867 | rasterizer_discard_enable = "VUID-vkCmdDrawMeshTasksNV-None-04876"; |
| 868 | depth_bias_enable = "VUID-vkCmdDrawMeshTasksNV-None-04877"; |
| 869 | logic_op = "VUID-vkCmdDrawMeshTasksNV-logicOp-04878"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 870 | vertex_input = kVUID_Core_CmdDrawMeshTasksNV_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 871 | blend_enable = "VUID-vkCmdDrawMeshTasksNV-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 872 | color_write_enable = "VUID-vkCmdDrawMeshTasksNV-attachmentCount-06667"; |
stusmith | edc4e39 | 2021-12-24 15:22:16 +0000 | [diff] [blame] | 873 | dynamic_rendering_view_mask = "VUID-vkCmdDrawMeshTasksNV-viewMask-06178"; |
| 874 | dynamic_rendering_color_count = "VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-06179"; |
| 875 | dynamic_rendering_color_formats = "VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-06180"; |
| 876 | dynamic_rendering_depth_format = "VUID-vkCmdDrawMeshTasksNV-pDepthAttachment-06181"; |
| 877 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawMeshTasksNV-pStencilAttachment-06182"; |
| 878 | dynamic_rendering_fsr = "VUID-vkCmdDrawMeshTasksNV-imageView-06183"; |
| 879 | dynamic_rendering_fdm = "VUID-vkCmdDrawMeshTasksNV-imageView-06184"; |
| 880 | dynamic_rendering_color_sample = "VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-06185"; |
| 881 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawMeshTasksNV-pDepthAttachment-06186"; |
| 882 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawMeshTasksNV-pStencilAttachment-06187"; |
| 883 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-06188"; |
| 884 | dynamic_rendering_06189 = "VUID-vkCmdDrawMeshTasksNV-pDepthAttachment-06189"; |
| 885 | dynamic_rendering_06190 = "VUID-vkCmdDrawMeshTasksNV-pStencilAttachment-06190"; |
| 886 | dynamic_rendering_06198 = "VUID-vkCmdDrawMeshTasksNV-renderPass-06198"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 887 | dynamic_rendering_07285 = "VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07285"; |
| 888 | dynamic_rendering_07286 = "VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07286"; |
| 889 | dynamic_rendering_07287 = "VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 890 | storage_image_read_without_format = "VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07028"; |
| 891 | storage_image_write_without_format = "VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07027"; |
| 892 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07030"; |
| 893 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 894 | depth_compare_sample = "VUID-vkCmdDrawMeshTasksNV-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 895 | dynamic_sample_locations = "VUID-vkCmdDrawMeshTasksNV-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 896 | primitives_generated = "VUID-vkCmdDrawMeshTasksNV-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 897 | primitives_generated_streams = "VUID-vkCmdDrawMeshTasksNV-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 898 | } |
| 899 | }; |
| 900 | |
| 901 | struct DispatchVuidsCmdDrawMeshTasksIndirectNV: DrawDispatchVuid { |
| 902 | DispatchVuidsCmdDrawMeshTasksIndirectNV() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 903 | pipeline_bound = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02700"; |
| 904 | dynamic_state = "VUID-vkCmdDrawMeshTasksIndirectNV-commandBuffer-02701"; |
| 905 | compatible_pipeline = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02697"; |
| 906 | render_pass_compatible = "VUID-vkCmdDrawMeshTasksIndirectNV-renderPass-02684"; |
| 907 | subpass_index = "VUID-vkCmdDrawMeshTasksIndirectNV-subpass-02685"; |
| 908 | sample_location = "VUID-vkCmdDrawMeshTasksIndirectNV-sampleLocationsEnable-02689"; |
| 909 | linear_sampler = "VUID-vkCmdDrawMeshTasksIndirectNV-magFilter-04553"; |
| 910 | cubic_sampler = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02692"; |
| 911 | indirect_protected_cb = "VUID-vkCmdDrawMeshTasksIndirectNV-commandBuffer-02711"; |
| 912 | indirect_contiguous_memory = "VUID-vkCmdDrawMeshTasksIndirectNV-buffer-02708"; |
| 913 | indirect_buffer_bit = "VUID-vkCmdDrawMeshTasksIndirectNV-buffer-02709"; |
| 914 | viewport_count = "VUID-vkCmdDrawMeshTasksIndirectNV-viewportCount-03417"; |
| 915 | scissor_count = "VUID-vkCmdDrawMeshTasksIndirectNV-scissorCount-03418"; |
| 916 | viewport_scissor_count = "VUID-vkCmdDrawMeshTasksIndirectNV-viewportCount-03419"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 917 | corner_sampled_address_mode = "VUID-vkCmdDrawMeshTasksIndirectNV-flags-02696"; |
| 918 | subpass_input = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02686"; |
| 919 | imageview_atomic = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 920 | push_constants_set = "VUID-vkCmdDrawMeshTasksIndirectNV-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 921 | image_subresources_render_pass_write = "VUID-vkCmdDrawMeshTasksIndirectNV-None-06537"; |
| 922 | image_subresources_subpass_read = "VUID-vkCmdDrawMeshTasksIndirectNV-None-06538"; |
| 923 | image_subresources_subpass_write = "VUID-vkCmdDrawMeshTasksIndirectNV-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 924 | descriptor_valid = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02699"; |
| 925 | sampler_imageview_type = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02702"; |
| 926 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02703"; |
| 927 | sampler_bias_offset = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02704"; |
| 928 | dynamic_state_setting_commands = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 929 | rasterization_samples = "VUID-vkCmdDrawMeshTasksIndirectNV-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 930 | msrtss_rasterization_samples = "VUID-vkCmdDrawMeshTasksIndirectNV-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 931 | unprotected_command_buffer = "VUID-vkCmdDrawMeshTasksIndirectNV-commandBuffer-02707"; |
| 932 | max_multiview_instance_index = "VUID-vkCmdDrawMeshTasksIndirectNV-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 933 | img_filter_cubic = "VUID-vkCmdDrawMeshTasksIndirectNV-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 934 | filter_cubic = "VUID-vkCmdDrawMeshTasksIndirectNV-filterCubic-02694"; |
| 935 | filter_cubic_min_max = "VUID-vkCmdDrawMeshTasksIndirectNV-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 936 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawMeshTasksIndirectNV-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 937 | rasterizer_discard_enable = "VUID-vkCmdDrawMeshTasksIndirectNV-None-04876"; |
| 938 | depth_bias_enable = "VUID-vkCmdDrawMeshTasksIndirectNV-None-04877"; |
| 939 | logic_op = "VUID-vkCmdDrawMeshTasksIndirectNV-logicOp-04878"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 940 | vertex_input = kVUID_Core_CmdDrawMeshTasksIndirectNV_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 941 | blend_enable = "VUID-vkCmdDrawMeshTasksIndirectNV-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 942 | color_write_enable = "VUID-vkCmdDrawMeshTasksIndirectNV-attachmentCount-06667"; |
stusmith | edc4e39 | 2021-12-24 15:22:16 +0000 | [diff] [blame] | 943 | dynamic_rendering_view_mask = "VUID-vkCmdDrawMeshTasksIndirectNV-viewMask-06178"; |
| 944 | dynamic_rendering_color_count = "VUID-vkCmdDrawMeshTasksIndirectNV-colorAttachmentCount-06179"; |
| 945 | dynamic_rendering_color_formats = "VUID-vkCmdDrawMeshTasksIndirectNV-colorAttachmentCount-06180"; |
| 946 | dynamic_rendering_depth_format = "VUID-vkCmdDrawMeshTasksIndirectNV-pDepthAttachment-06181"; |
| 947 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawMeshTasksIndirectNV-pStencilAttachment-06182"; |
| 948 | dynamic_rendering_fsr = "VUID-vkCmdDrawMeshTasksIndirectNV-imageView-06183"; |
| 949 | dynamic_rendering_fdm = "VUID-vkCmdDrawMeshTasksIndirectNV-imageView-06184"; |
| 950 | dynamic_rendering_color_sample = "VUID-vkCmdDrawMeshTasksIndirectNV-colorAttachmentCount-06185"; |
| 951 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawMeshTasksIndirectNV-pDepthAttachment-06186"; |
| 952 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawMeshTasksIndirectNV-pStencilAttachment-06187"; |
| 953 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawMeshTasksIndirectNV-colorAttachmentCount-06188"; |
| 954 | dynamic_rendering_06189 = "VUID-vkCmdDrawMeshTasksIndirectNV-pDepthAttachment-06189"; |
| 955 | dynamic_rendering_06190 = "VUID-vkCmdDrawMeshTasksIndirectNV-pStencilAttachment-06190"; |
| 956 | dynamic_rendering_06198 = "VUID-vkCmdDrawMeshTasksIndirectNV-renderPass-06198"; |
Tony-LunarG | d45f81d | 2022-09-12 12:06:39 -0600 | [diff] [blame^] | 957 | dynamic_rendering_07285 = "VUID-vkCmdDrawMeshTasksIndirectNV-multisampledRenderToSingleSampled-07285"; |
| 958 | dynamic_rendering_07286 = "VUID-vkCmdDrawMeshTasksIndirectNV-multisampledRenderToSingleSampled-07286"; |
| 959 | dynamic_rendering_07287 = "VUID-vkCmdDrawMeshTasksIndirectNV-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 960 | storage_image_read_without_format = "VUID-vkCmdDrawMeshTasksIndirectNV-OpTypeImage-07028"; |
| 961 | storage_image_write_without_format = "VUID-vkCmdDrawMeshTasksIndirectNV-OpTypeImage-07027"; |
| 962 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawMeshTasksIndirectNV-OpTypeImage-07030"; |
| 963 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawMeshTasksIndirectNV-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 964 | depth_compare_sample = "VUID-vkCmdDrawMeshTasksIndirectNV-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 965 | dynamic_sample_locations = "VUID-vkCmdDrawMeshTasksIndirectNV-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 966 | primitives_generated = "VUID-vkCmdDrawMeshTasksIndirectNV-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 967 | primitives_generated_streams = "VUID-vkCmdDrawMeshTasksIndirectNV-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 968 | } |
| 969 | }; |
| 970 | |
| 971 | struct DispatchVuidsCmdDrawMeshTasksIndirectCountNV : DrawDispatchVuid { |
| 972 | DispatchVuidsCmdDrawMeshTasksIndirectCountNV() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 973 | pipeline_bound = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02700"; |
| 974 | dynamic_state = "VUID-vkCmdDrawMeshTasksIndirectCountNV-commandBuffer-02701"; |
| 975 | compatible_pipeline = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02697"; |
| 976 | render_pass_compatible = "VUID-vkCmdDrawMeshTasksIndirectCountNV-renderPass-02684"; |
| 977 | subpass_index = "VUID-vkCmdDrawMeshTasksIndirectCountNV-subpass-02685"; |
| 978 | sample_location = "VUID-vkCmdDrawMeshTasksIndirectCountNV-sampleLocationsEnable-02689"; |
| 979 | linear_sampler = "VUID-vkCmdDrawMeshTasksIndirectCountNV-magFilter-04553"; |
| 980 | cubic_sampler = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02692"; |
| 981 | indirect_protected_cb = "VUID-vkCmdDrawMeshTasksIndirectCountNV-commandBuffer-02711"; |
| 982 | indirect_contiguous_memory = "VUID-vkCmdDrawMeshTasksIndirectCountNV-buffer-02708"; |
| 983 | indirect_buffer_bit = "VUID-vkCmdDrawMeshTasksIndirectCountNV-buffer-02709"; |
Mike Schuchardt | fe17d6c | 2022-06-13 14:54:01 -0700 | [diff] [blame] | 984 | indirect_count_contiguous_memory = "VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-02714"; |
| 985 | indirect_count_buffer_bit = "VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-02715"; |
| 986 | indirect_count_offset = "VUID-vkCmdDrawMeshTasksIndirectCountNV-countBufferOffset-04129"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 987 | viewport_count = "VUID-vkCmdDrawMeshTasksIndirectCountNV-viewportCount-03417"; |
| 988 | scissor_count = "VUID-vkCmdDrawMeshTasksIndirectCountNV-scissorCount-03418"; |
| 989 | viewport_scissor_count = "VUID-vkCmdDrawMeshTasksIndirectCountNV-viewportCount-03419"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 990 | corner_sampled_address_mode = "VUID-vkCmdDrawMeshTasksIndirectCountNV-flags-02696"; |
| 991 | subpass_input = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02686"; |
| 992 | imageview_atomic = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 993 | push_constants_set = "VUID-vkCmdDrawMeshTasksIndirectCountNV-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 994 | image_subresources_render_pass_write = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-06537"; |
| 995 | image_subresources_subpass_read = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-06538"; |
| 996 | image_subresources_subpass_write = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 997 | descriptor_valid = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02699"; |
| 998 | sampler_imageview_type = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02702"; |
| 999 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02703"; |
| 1000 | sampler_bias_offset = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02704"; |
| 1001 | dynamic_state_setting_commands = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 1002 | rasterization_samples = "VUID-vkCmdDrawMeshTasksIndirectCountNV-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 1003 | msrtss_rasterization_samples = "VUID-vkCmdDrawMeshTasksIndirectCountNV-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1004 | unprotected_command_buffer = "VUID-vkCmdDrawMeshTasksIndirectCountNV-commandBuffer-02707"; |
| 1005 | max_multiview_instance_index = "VUID-vkCmdDrawMeshTasksIndirectCountNV-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 1006 | img_filter_cubic = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1007 | filter_cubic = "VUID-vkCmdDrawMeshTasksIndirectCountNV-filterCubic-02694"; |
| 1008 | filter_cubic_min_max = "VUID-vkCmdDrawMeshTasksIndirectCountNV-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 1009 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawMeshTasksIndirectCountNV-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 1010 | rasterizer_discard_enable = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-04876"; |
| 1011 | depth_bias_enable = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-04877"; |
| 1012 | logic_op = "VUID-vkCmdDrawMeshTasksIndirectCountNV-logicOp-04878"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 1013 | vertex_input = kVUID_Core_CmdDrawMeshTasksIndirectCountNV_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 1014 | blend_enable = "VUID-vkCmdDrawMeshTasksIndirectCountNV-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 1015 | color_write_enable = "VUID-vkCmdDrawMeshTasksIndirectCountNV-attachmentCount-06667"; |
stusmith | edc4e39 | 2021-12-24 15:22:16 +0000 | [diff] [blame] | 1016 | dynamic_rendering_view_mask = "VUID-vkCmdDrawMeshTasksIndirectCountNV-viewMask-06178"; |
| 1017 | dynamic_rendering_color_count = "VUID-vkCmdDrawMeshTasksIndirectCountNV-colorAttachmentCount-06179"; |
| 1018 | dynamic_rendering_color_formats = "VUID-vkCmdDrawMeshTasksIndirectCountNV-colorAttachmentCount-06180"; |
| 1019 | dynamic_rendering_depth_format = "VUID-vkCmdDrawMeshTasksIndirectCountNV-pDepthAttachment-06181"; |
| 1020 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawMeshTasksIndirectCountNV-pStencilAttachment-06182"; |
| 1021 | dynamic_rendering_fsr = "VUID-vkCmdDrawMeshTasksIndirectCountNV-imageView-06183"; |
| 1022 | dynamic_rendering_fdm = "VUID-vkCmdDrawMeshTasksIndirectCountNV-imageView-06184"; |
| 1023 | dynamic_rendering_color_sample = "VUID-vkCmdDrawMeshTasksIndirectCountNV-colorAttachmentCount-06185"; |
| 1024 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawMeshTasksIndirectCountNV-pDepthAttachment-06186"; |
| 1025 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawMeshTasksIndirectCountNV-pStencilAttachment-06187"; |
| 1026 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawMeshTasksIndirectCountNV-colorAttachmentCount-06188"; |
| 1027 | dynamic_rendering_06189 = "VUID-vkCmdDrawMeshTasksIndirectCountNV-pDepthAttachment-06189"; |
| 1028 | dynamic_rendering_06190 = "VUID-vkCmdDrawMeshTasksIndirectCountNV-pStencilAttachment-06190"; |
| 1029 | dynamic_rendering_06198 = "VUID-vkCmdDrawMeshTasksIndirectCountNV-renderPass-06198"; |
Tony-LunarG | d45f81d | 2022-09-12 12:06:39 -0600 | [diff] [blame^] | 1030 | dynamic_rendering_07285 = "VUID-vkCmdDrawMeshTasksIndirectCountNV-multisampledRenderToSingleSampled-07285"; |
| 1031 | dynamic_rendering_07286 = "VUID-vkCmdDrawMeshTasksIndirectCountNV-multisampledRenderToSingleSampled-07286"; |
| 1032 | dynamic_rendering_07287 = "VUID-vkCmdDrawMeshTasksIndirectCountNV-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 1033 | storage_image_read_without_format = "VUID-vkCmdDrawMeshTasksIndirectCountNV-OpTypeImage-07028"; |
| 1034 | storage_image_write_without_format = "VUID-vkCmdDrawMeshTasksIndirectCountNV-OpTypeImage-07027"; |
| 1035 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawMeshTasksIndirectCountNV-OpTypeImage-07030"; |
| 1036 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawMeshTasksIndirectCountNV-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 1037 | depth_compare_sample = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 1038 | dynamic_sample_locations = "VUID-vkCmdDrawMeshTasksIndirectCountNV-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 1039 | primitives_generated = "VUID-vkCmdDrawMeshTasksIndirectCountNV-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 1040 | primitives_generated_streams = "VUID-vkCmdDrawMeshTasksIndirectCountNV-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1041 | } |
| 1042 | }; |
| 1043 | |
| 1044 | struct DispatchVuidsCmdDrawIndirectByteCountEXT: DrawDispatchVuid { |
| 1045 | DispatchVuidsCmdDrawIndirectByteCountEXT() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1046 | pipeline_bound = "VUID-vkCmdDrawIndirectByteCountEXT-None-02700"; |
| 1047 | dynamic_state = "VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-02701"; |
| 1048 | vertex_binding = "VUID-vkCmdDrawIndirectByteCountEXT-None-04007"; |
| 1049 | vertex_binding_null = "VUID-vkCmdDrawIndirectByteCountEXT-None-04008"; |
| 1050 | compatible_pipeline = "VUID-vkCmdDrawIndirectByteCountEXT-None-02697"; |
| 1051 | render_pass_compatible = "VUID-vkCmdDrawIndirectByteCountEXT-renderPass-02684"; |
| 1052 | subpass_index = "VUID-vkCmdDrawIndirectByteCountEXT-subpass-02685"; |
| 1053 | sample_location = "VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-02689"; |
| 1054 | linear_sampler = "VUID-vkCmdDrawIndirectByteCountEXT-magFilter-04553"; |
| 1055 | cubic_sampler = "VUID-vkCmdDrawIndirectByteCountEXT-None-02692"; |
| 1056 | indirect_protected_cb = "VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-02646"; |
sfricke-samsung | b091d4e | 2021-04-18 23:15:59 -0700 | [diff] [blame] | 1057 | indirect_contiguous_memory = "VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-04567", |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1058 | indirect_buffer_bit = "VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-02290"; |
| 1059 | viewport_count = "VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-03417"; |
| 1060 | scissor_count = "VUID-vkCmdDrawIndirectByteCountEXT-scissorCount-03418"; |
| 1061 | viewport_scissor_count = "VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-03419"; |
| 1062 | primitive_topology = "VUID-vkCmdDrawIndirectByteCountEXT-primitiveTopology-03420"; |
| 1063 | corner_sampled_address_mode = "VUID-vkCmdDrawIndirectByteCountEXT-flags-02696"; |
| 1064 | subpass_input = "VUID-vkCmdDrawIndirectByteCountEXT-None-02686"; |
| 1065 | imageview_atomic = "VUID-vkCmdDrawIndirectByteCountEXT-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 1066 | push_constants_set = "VUID-vkCmdDrawIndirectByteCountEXT-maintenance4-06425"; |
ziga-lunarg | 498b7e7 | 2022-03-12 00:33:37 +0100 | [diff] [blame] | 1067 | image_subresources_render_pass_write = "VUID-vkCmdDrawIndirectByteCountEXT-None-06537"; |
| 1068 | image_subresources_subpass_read = "VUID-vkCmdDrawIndirectByteCountEXT-None-06538"; |
| 1069 | image_subresources_subpass_write = "VUID-vkCmdDrawIndirectByteCountEXT-None-06539"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1070 | descriptor_valid = "VUID-vkCmdDrawIndirectByteCountEXT-None-02699"; |
| 1071 | sampler_imageview_type = "VUID-vkCmdDrawIndirectByteCountEXT-None-02702"; |
| 1072 | sampler_implicitLod_dref_proj = "VUID-vkCmdDrawIndirectByteCountEXT-None-02703"; |
| 1073 | sampler_bias_offset = "VUID-vkCmdDrawIndirectByteCountEXT-None-02704"; |
| 1074 | vertex_binding_attribute = "VUID-vkCmdDrawIndirectByteCountEXT-None-02721"; |
| 1075 | dynamic_state_setting_commands = "VUID-vkCmdDrawIndirectByteCountEXT-None-02859"; |
sfricke-samsung | 962d6f0 | 2021-04-03 20:28:59 -0700 | [diff] [blame] | 1076 | rasterization_samples = "VUID-vkCmdDrawIndirectByteCountEXT-rasterizationSamples-04740"; |
Tony-LunarG | 13778ab | 2022-09-07 14:43:02 -0600 | [diff] [blame] | 1077 | msrtss_rasterization_samples = "VUID-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07284"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1078 | unprotected_command_buffer = "VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-02707"; |
| 1079 | max_multiview_instance_index = "VUID-vkCmdDrawIndirectByteCountEXT-maxMultiviewInstanceIndex-02688"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 1080 | img_filter_cubic = "VUID-vkCmdDrawIndirectByteCountEXT-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1081 | filter_cubic = "VUID-vkCmdDrawIndirectByteCountEXT-filterCubic-02694"; |
| 1082 | filter_cubic_min_max = "VUID-vkCmdDrawIndirectByteCountEXT-filterCubicMinmax-02695"; |
Tobias Hector | 6663c9b | 2020-11-05 10:18:02 +0000 | [diff] [blame] | 1083 | viewport_count_primitive_shading_rate = "VUID-vkCmdDrawIndirectByteCountEXT-primitiveFragmentShadingRateWithMultipleViewports-04552"; |
Piers Daniell | 924cd83 | 2021-05-18 13:48:47 -0600 | [diff] [blame] | 1084 | patch_control_points = "VUID-vkCmdDrawIndirectByteCountEXT-None-04875"; |
| 1085 | rasterizer_discard_enable = "VUID-vkCmdDrawIndirectByteCountEXT-None-04876"; |
| 1086 | depth_bias_enable = "VUID-vkCmdDrawIndirectByteCountEXT-None-04877"; |
| 1087 | logic_op = "VUID-vkCmdDrawIndirectByteCountEXT-logicOp-04878"; |
| 1088 | primitive_restart_enable = "VUID-vkCmdDrawIndirectByteCountEXT-None-04879"; |
| 1089 | vertex_input_binding_stride = "VUID-vkCmdDrawIndirectByteCountEXT-pStrides-04884"; |
| 1090 | vertex_input = kVUID_Core_CmdDrawIndirectByteCountEXT_VertexInput; |
ziga-lunarg | 8d62f95 | 2021-08-30 16:47:25 +0200 | [diff] [blame] | 1091 | blend_enable = "VUID-vkCmdDrawIndirectByteCountEXT-blendEnable-04727"; |
ziga-lunarg | 67b7c39 | 2022-03-26 01:45:34 +0100 | [diff] [blame] | 1092 | color_write_enable = "VUID-vkCmdDrawIndirectByteCountEXT-attachmentCount-06667"; |
stusmith | edc4e39 | 2021-12-24 15:22:16 +0000 | [diff] [blame] | 1093 | dynamic_rendering_view_mask = "VUID-vkCmdDrawIndirectByteCountEXT-viewMask-06178"; |
| 1094 | dynamic_rendering_color_count = "VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-06179"; |
| 1095 | dynamic_rendering_color_formats = "VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-06180"; |
| 1096 | dynamic_rendering_depth_format = "VUID-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-06181"; |
| 1097 | dynamic_rendering_stencil_format = "VUID-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-06182"; |
| 1098 | dynamic_rendering_fsr = "VUID-vkCmdDrawIndirectByteCountEXT-imageView-06183"; |
| 1099 | dynamic_rendering_fdm = "VUID-vkCmdDrawIndirectByteCountEXT-imageView-06184"; |
| 1100 | dynamic_rendering_color_sample = "VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-06185"; |
| 1101 | dynamic_rendering_depth_sample = "VUID-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-06186"; |
| 1102 | dynamic_rendering_stencil_sample = "VUID-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-06187"; |
| 1103 | dynamic_rendering_multi_sample = "VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-06188"; |
| 1104 | dynamic_rendering_06189 = "VUID-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-06189"; |
| 1105 | dynamic_rendering_06190 = "VUID-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-06190"; |
| 1106 | dynamic_rendering_06198 = "VUID-vkCmdDrawIndirectByteCountEXT-renderPass-06198"; |
Tony-LunarG | d45f81d | 2022-09-12 12:06:39 -0600 | [diff] [blame^] | 1107 | dynamic_rendering_07285 = "VUID-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07285"; |
| 1108 | dynamic_rendering_07286 = "VUID-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07286"; |
| 1109 | dynamic_rendering_07287 = "VUID-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07287"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 1110 | storage_image_read_without_format = "VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07028"; |
| 1111 | storage_image_write_without_format = "VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07027"; |
| 1112 | storage_texel_buffer_read_without_format = "VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07030"; |
| 1113 | storage_texel_buffer_write_without_format = "VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 1114 | depth_compare_sample = "VUID-vkCmdDrawIndirectByteCountEXT-None-06479"; |
ziga-lunarg | 5018862 | 2022-03-26 01:18:32 +0100 | [diff] [blame] | 1115 | dynamic_sample_locations = "VUID-vkCmdDrawIndirectByteCountEXT-None-06666"; |
ziga-lunarg | 8935ad1 | 2022-04-02 02:00:23 +0200 | [diff] [blame] | 1116 | primitives_generated = "VUID-vkCmdDrawIndirectByteCountEXT-primitivesGeneratedQueryWithRasterizerDiscard-06708"; |
ziga-lunarg | f4068b1 | 2022-04-05 13:58:59 +0200 | [diff] [blame] | 1117 | primitives_generated_streams = "VUID-vkCmdDrawIndirectByteCountEXT-primitivesGeneratedQueryWithNonZeroStreams-06709"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1118 | } |
| 1119 | }; |
| 1120 | |
| 1121 | struct DispatchVuidsCmdDispatchBase: DrawDispatchVuid { |
| 1122 | DispatchVuidsCmdDispatchBase() : DrawDispatchVuid() { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1123 | pipeline_bound = "VUID-vkCmdDispatchBase-None-02700"; |
Mark Lobodzinski | 02d3755 | 2020-12-28 13:29:46 -0700 | [diff] [blame] | 1124 | dynamic_state = "VUID-vkCmdDispatchBase-commandBuffer-02701"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1125 | compatible_pipeline = "VUID-vkCmdDispatchBase-None-02697"; |
| 1126 | linear_sampler = "VUID-vkCmdDispatchBase-magFilter-04553"; |
| 1127 | cubic_sampler = "VUID-vkCmdDispatchBase-None-02692"; |
| 1128 | corner_sampled_address_mode = "VUID-vkCmdDispatchBase-flags-02696"; |
| 1129 | imageview_atomic = "VUID-vkCmdDispatchBase-None-02691"; |
Piers Daniell | a7f93b6 | 2021-11-20 12:32:04 -0700 | [diff] [blame] | 1130 | push_constants_set = "VUID-vkCmdDispatchBase-maintenance4-06425"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1131 | descriptor_valid = "VUID-vkCmdDispatchBase-None-02699"; |
| 1132 | sampler_imageview_type = "VUID-vkCmdDispatchBase-None-02702"; |
| 1133 | sampler_implicitLod_dref_proj = "VUID-vkCmdDispatchBase-None-02703"; |
| 1134 | sampler_bias_offset = "VUID-vkCmdDispatchBase-None-02704"; |
| 1135 | dynamic_state_setting_commands = "VUID-vkCmdDispatchBase-None-02859"; |
| 1136 | unprotected_command_buffer = "VUID-vkCmdDispatchBase-commandBuffer-02707"; |
sfricke-samsung | e79d089 | 2021-06-17 08:56:22 -0700 | [diff] [blame] | 1137 | protected_command_buffer = "VUID-vkCmdDispatchBase-commandBuffer-02712"; |
Mark Lobodzinski | f786b41 | 2020-11-30 12:16:17 -0700 | [diff] [blame] | 1138 | img_filter_cubic = "VUID-vkCmdDispatchBase-None-02693"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1139 | filter_cubic = "VUID-vkCmdDispatchBase-filterCubic-02694"; |
| 1140 | filter_cubic_min_max = "VUID-vkCmdDispatchBase-filterCubicMinmax-02695"; |
Mike Schuchardt | 0e558a5 | 2022-08-18 15:14:51 -0700 | [diff] [blame] | 1141 | storage_image_read_without_format = "VUID-vkCmdDispatchBase-OpTypeImage-07028"; |
| 1142 | storage_image_write_without_format = "VUID-vkCmdDispatchBase-OpTypeImage-07027"; |
| 1143 | storage_texel_buffer_read_without_format = "VUID-vkCmdDispatchBase-OpTypeImage-07030"; |
| 1144 | storage_texel_buffer_write_without_format = "VUID-vkCmdDispatchBase-OpTypeImage-07029"; |
Lionel Landwerlin | cdbe868 | 2021-12-08 15:10:37 +0200 | [diff] [blame] | 1145 | depth_compare_sample = "VUID-vkCmdDispatchBase-None-06479"; |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1146 | } |
| 1147 | }; |
| 1148 | |
| 1149 | // This LUT is created to allow a static listing of each VUID that is covered by drawdispatch commands |
Nathaniel Cesario | ce9b481 | 2020-12-17 08:55:28 -0700 | [diff] [blame] | 1150 | static const std::map<CMD_TYPE, DrawDispatchVuid> kDrawdispatchVuid = { |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1151 | {CMD_DRAW, DispatchVuidsCmdDraw()}, |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1152 | {CMD_DRAWMULTIEXT, DispatchVuidsCmdDrawMultiEXT()}, |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1153 | {CMD_DRAWINDEXED, DispatchVuidsCmdDrawIndexed()}, |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1154 | {CMD_DRAWMULTIINDEXEDEXT, DispatchVuidsCmdDrawMultiIndexedEXT()}, |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1155 | {CMD_DRAWINDIRECT, DispatchVuidsCmdDrawIndirect()}, |
| 1156 | {CMD_DRAWINDEXEDINDIRECT, DispatchVuidsCmdDrawIndexedIndirect()}, |
| 1157 | {CMD_DISPATCH, DispatchVuidsCmdDispatch()}, |
| 1158 | {CMD_DISPATCHINDIRECT, DispatchVuidsCmdDispatchIndirect()}, |
| 1159 | {CMD_DRAWINDIRECTCOUNT, DispatchVuidsCmdDrawIndirectCount()}, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1160 | {CMD_DRAWINDIRECTCOUNTKHR, DispatchVuidsCmdDrawIndirectCount()}, |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1161 | {CMD_DRAWINDEXEDINDIRECTCOUNT, DispatchVuidsCmdDrawIndexedIndirectCount()}, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1162 | {CMD_DRAWINDEXEDINDIRECTCOUNTKHR, DispatchVuidsCmdDrawIndexedIndirectCount()}, |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1163 | {CMD_TRACERAYSNV, DispatchVuidsCmdTraceRaysNV()}, |
| 1164 | {CMD_TRACERAYSKHR, DispatchVuidsCmdTraceRaysKHR()}, |
| 1165 | {CMD_TRACERAYSINDIRECTKHR, DispatchVuidsCmdTraceRaysIndirectKHR()}, |
sfricke-samsung | f91881c | 2022-03-31 01:12:00 -0500 | [diff] [blame] | 1166 | {CMD_TRACERAYSINDIRECT2KHR, DispatchVuidsCmdTraceRaysIndirect2KHR()}, |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1167 | {CMD_DRAWMESHTASKSNV, DispatchVuidsCmdDrawMeshTasksNV()}, |
| 1168 | {CMD_DRAWMESHTASKSINDIRECTNV, DispatchVuidsCmdDrawMeshTasksIndirectNV()}, |
| 1169 | {CMD_DRAWMESHTASKSINDIRECTCOUNTNV, DispatchVuidsCmdDrawMeshTasksIndirectCountNV()}, |
| 1170 | {CMD_DRAWINDIRECTBYTECOUNTEXT, DispatchVuidsCmdDrawIndirectByteCountEXT()}, |
| 1171 | {CMD_DISPATCHBASE, DispatchVuidsCmdDispatchBase()}, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1172 | {CMD_DISPATCHBASEKHR, DispatchVuidsCmdDispatchBase()}, |
Spencer Fricke | 507600b | 2020-03-22 13:23:06 -0700 | [diff] [blame] | 1173 | // Used if invalid cmd_type is used |
Mark Lobodzinski | ddf4361 | 2020-11-17 11:28:02 -0700 | [diff] [blame] | 1174 | {CMD_NONE, DrawDispatchVuid()} |
Spencer Fricke | 507600b | 2020-03-22 13:23:06 -0700 | [diff] [blame] | 1175 | }; |
| 1176 | // clang-format on |
| 1177 | |
| 1178 | // Getter function to provide kVUIDUndefined in case an invalid cmd_type is passed in |
| 1179 | const DrawDispatchVuid &CoreChecks::GetDrawDispatchVuid(CMD_TYPE cmd_type) const { |
Nathaniel Cesario | ce9b481 | 2020-12-17 08:55:28 -0700 | [diff] [blame] | 1180 | if (kDrawdispatchVuid.find(cmd_type) != kDrawdispatchVuid.cend()) { |
| 1181 | return kDrawdispatchVuid.at(cmd_type); |
Spencer Fricke | 507600b | 2020-03-22 13:23:06 -0700 | [diff] [blame] | 1182 | } else { |
Nathaniel Cesario | ce9b481 | 2020-12-17 08:55:28 -0700 | [diff] [blame] | 1183 | return kDrawdispatchVuid.at(CMD_NONE); |
Spencer Fricke | 507600b | 2020-03-22 13:23:06 -0700 | [diff] [blame] | 1184 | } |
| 1185 | } |
| 1186 | |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1187 | // Generic function to handle validation for all CmdDraw* type functions |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1188 | bool CoreChecks::ValidateCmdDrawType(const CMD_BUFFER_STATE &cb_state, bool indexed, VkPipelineBindPoint bind_point, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1189 | CMD_TYPE cmd_type) const { |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1190 | bool skip = false; |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1191 | skip |= ValidateCmd(&cb_state, cmd_type); |
| 1192 | skip |= ValidateCmdBufDrawState(&cb_state, cmd_type, indexed, bind_point); |
| 1193 | skip |= ValidateCmdRayQueryState(&cb_state, cmd_type, bind_point); |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1194 | return skip; |
| 1195 | } |
| 1196 | |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1197 | bool CoreChecks::ValidateCmdDrawInstance(const CMD_BUFFER_STATE &cb_node, uint32_t instanceCount, uint32_t firstInstance, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1198 | CMD_TYPE cmd_type) const { |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1199 | bool skip = false; |
| 1200 | const DrawDispatchVuid vuid = GetDrawDispatchVuid(cmd_type); |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1201 | const char *caller = CommandTypeString(cmd_type); |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1202 | |
| 1203 | // Verify maxMultiviewInstanceIndex |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1204 | if (cb_node.activeRenderPass && cb_node.activeRenderPass->renderPass() && enabled_features.multiview_features.multiview && |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1205 | ((instanceCount + firstInstance) > phys_dev_ext_props.multiview_props.maxMultiviewInstanceIndex)) { |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1206 | LogObjectList objlist(cb_node.Handle()); |
| 1207 | objlist.add(cb_node.activeRenderPass->Handle()); |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1208 | skip |= LogError(objlist, vuid.max_multiview_instance_index, |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1209 | "%s: renderpass %s multiview is enabled, and maxMultiviewInstanceIndex: %" PRIu32 |
| 1210 | ", but instanceCount: %" PRIu32 "and firstInstance: %" PRIu32 ".", |
| 1211 | caller, report_data->FormatHandle(cb_node.activeRenderPass->Handle()).c_str(), |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1212 | phys_dev_ext_props.multiview_props.maxMultiviewInstanceIndex, instanceCount, firstInstance); |
| 1213 | } |
| 1214 | return skip; |
| 1215 | } |
| 1216 | |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1217 | bool CoreChecks::PreCallValidateCmdDraw(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, |
Jeff Bolz | 5c801d1 | 2019-10-09 10:38:45 -0500 | [diff] [blame] | 1218 | uint32_t firstVertex, uint32_t firstInstance) const { |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1219 | bool skip = false; |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1220 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1221 | skip |= ValidateCmdDrawInstance(*cb_state, instanceCount, firstInstance, CMD_DRAW); |
| 1222 | skip |= ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAW); |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1223 | return skip; |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1224 | } |
| 1225 | |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1226 | bool CoreChecks::PreCallValidateCmdDrawMultiEXT(VkCommandBuffer commandBuffer, uint32_t drawCount, |
| 1227 | const VkMultiDrawInfoEXT *pVertexInfo, uint32_t instanceCount, |
| 1228 | uint32_t firstInstance, uint32_t stride) const { |
| 1229 | bool skip = false; |
| 1230 | if (!enabled_features.multi_draw_features.multiDraw) { |
| 1231 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawMultiEXT-None-04933", |
| 1232 | "vkCmdDrawMultiEXT(): The multiDraw feature must be enabled to " |
| 1233 | "call this command."); |
| 1234 | } |
| 1235 | if (drawCount > phys_dev_ext_props.multi_draw_props.maxMultiDrawCount) { |
| 1236 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawMultiEXT-drawCount-04934", |
| 1237 | "vkCmdDrawMultiEXT(): parameter, uint32_t drawCount (%" PRIu32 |
| 1238 | ") must be less than VkPhysicalDeviceMultiDrawPropertiesEXT::maxMultiDrawCount (%" PRIu32 ").", |
| 1239 | drawCount, phys_dev_ext_props.multi_draw_props.maxMultiDrawCount); |
| 1240 | } |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1241 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1242 | skip |= ValidateCmdDrawInstance(*cb_state, instanceCount, firstInstance, CMD_DRAWMULTIEXT); |
| 1243 | skip |= ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWMULTIEXT); |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1244 | return skip; |
| 1245 | } |
| 1246 | |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1247 | bool CoreChecks::ValidateCmdDrawIndexedBufferSize(const CMD_BUFFER_STATE &cb_state, uint32_t indexCount, uint32_t firstIndex, |
| 1248 | const char *caller, const char *first_index_vuid) const { |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1249 | bool skip = false; |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1250 | if (cb_state.status & CBSTATUS_INDEX_BUFFER_BOUND) { |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1251 | unsigned int index_size = 0; |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1252 | const auto &index_buffer_binding = cb_state.index_buffer_binding; |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1253 | if (index_buffer_binding.index_type == VK_INDEX_TYPE_UINT16) { |
| 1254 | index_size = 2; |
| 1255 | } |
| 1256 | else if (index_buffer_binding.index_type == VK_INDEX_TYPE_UINT32) { |
| 1257 | index_size = 4; |
| 1258 | } |
| 1259 | else if (index_buffer_binding.index_type == VK_INDEX_TYPE_UINT8_EXT) { |
| 1260 | index_size = 1; |
| 1261 | } |
| 1262 | VkDeviceSize end_offset = (index_size * (static_cast<VkDeviceSize>(firstIndex) + indexCount)) + index_buffer_binding.offset; |
| 1263 | if (end_offset > index_buffer_binding.size) { |
| 1264 | skip |= LogError(index_buffer_binding.buffer_state->buffer(), first_index_vuid, |
| 1265 | "%s: index size (%u) * (firstIndex (%u) + indexCount (%u)) " |
| 1266 | "+ binding offset (%" PRIuLEAST64 ") = an ending offset of %" PRIuLEAST64 |
| 1267 | " bytes, which is greater than the index buffer size (%" PRIuLEAST64 ").", |
| 1268 | caller, index_size, firstIndex, indexCount, index_buffer_binding.offset, end_offset, |
| 1269 | index_buffer_binding.size); |
| 1270 | } |
| 1271 | } |
| 1272 | return skip; |
| 1273 | } |
| 1274 | |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1275 | bool CoreChecks::PreCallValidateCmdDrawIndexed(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount, |
Jeff Bolz | 5c801d1 | 2019-10-09 10:38:45 -0500 | [diff] [blame] | 1276 | uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance) const { |
locke-lunarg | 3fa463a | 2020-10-23 16:39:04 -0600 | [diff] [blame] | 1277 | bool skip = false; |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1278 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1279 | skip |= ValidateCmdDrawInstance(*cb_state, instanceCount, firstInstance, CMD_DRAWINDEXED); |
| 1280 | skip |= ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWINDEXED); |
| 1281 | skip |= ValidateCmdDrawIndexedBufferSize(*cb_state, indexCount, firstIndex, "vkCmdDrawIndexed()", |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1282 | "VUID-vkCmdDrawIndexed-firstIndex-04932"); |
| 1283 | return skip; |
| 1284 | } |
| 1285 | |
| 1286 | bool CoreChecks::PreCallValidateCmdDrawMultiIndexedEXT(VkCommandBuffer commandBuffer, uint32_t drawCount, |
| 1287 | const VkMultiDrawIndexedInfoEXT *pIndexInfo, uint32_t instanceCount, |
| 1288 | uint32_t firstInstance, uint32_t stride, |
| 1289 | const int32_t *pVertexOffset) const { |
| 1290 | bool skip = false; |
| 1291 | if (!enabled_features.multi_draw_features.multiDraw) { |
| 1292 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawMultiIndexedEXT-None-04937", |
| 1293 | "vkCmdDrawMultiIndexedEXT(): The multiDraw feature must be enabled to " |
| 1294 | "call this command."); |
| 1295 | } |
| 1296 | if (drawCount > phys_dev_ext_props.multi_draw_props.maxMultiDrawCount) { |
| 1297 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawMultiIndexedEXT-drawCount-04939", |
| 1298 | "vkCmdDrawMultiIndexedEXT(): parameter, uint32_t drawCount (0x%" PRIu32 |
| 1299 | ") must be less than VkPhysicalDeviceMultiDrawPropertiesEXT::maxMultiDrawCount (0x%" PRIu32 ").", |
| 1300 | drawCount, phys_dev_ext_props.multi_draw_props.maxMultiDrawCount); |
| 1301 | } |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1302 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1303 | skip |= ValidateCmdDrawInstance(*cb_state, instanceCount, firstInstance, CMD_DRAWMULTIINDEXEDEXT); |
| 1304 | skip |= ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWMULTIINDEXEDEXT); |
Ricardo Garcia | 27a26f5 | 2021-07-13 15:52:14 +0200 | [diff] [blame] | 1305 | const auto info_bytes = reinterpret_cast<const char *>(pIndexInfo); |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1306 | for (uint32_t i = 0; i < drawCount; i++) { |
Ricardo Garcia | 27a26f5 | 2021-07-13 15:52:14 +0200 | [diff] [blame] | 1307 | const auto info_ptr = reinterpret_cast<const VkMultiDrawIndexedInfoEXT *>(info_bytes + i * stride); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1308 | skip |= ValidateCmdDrawIndexedBufferSize(*cb_state, info_ptr->indexCount, info_ptr->firstIndex, |
Tony-LunarG | 4490de4 | 2021-06-21 15:49:19 -0600 | [diff] [blame] | 1309 | "vkCmdDrawMultiIndexedEXT()", "VUID-vkCmdDrawMultiIndexedEXT-firstIndex-04938"); |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1310 | } |
| 1311 | return skip; |
| 1312 | } |
| 1313 | |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1314 | bool CoreChecks::PreCallValidateCmdDrawIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1315 | uint32_t drawCount, uint32_t stride) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1316 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1317 | bool skip = ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWINDIRECT); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1318 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1319 | skip |= ValidateIndirectCmd(*cb_state, *buffer_state, CMD_DRAWINDIRECT); |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1320 | if (drawCount > 1) { |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1321 | skip |= ValidateCmdDrawStrideWithStruct(commandBuffer, "VUID-vkCmdDrawIndirect-drawCount-00476", stride, |
| 1322 | "VkDrawIndirectCommand", sizeof(VkDrawIndirectCommand)); |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1323 | skip |= ValidateCmdDrawStrideWithBuffer(commandBuffer, "VUID-vkCmdDrawIndirect-drawCount-00488", stride, |
| 1324 | "VkDrawIndirectCommand", sizeof(VkDrawIndirectCommand), drawCount, offset, |
Jeremy Gebben | 9f53710 | 2021-10-05 16:37:12 -0600 | [diff] [blame] | 1325 | buffer_state.get()); |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1326 | } else if ((drawCount == 1) && (offset + sizeof(VkDrawIndirectCommand)) > buffer_state->createInfo.size) { |
| 1327 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawIndirect-drawCount-00487", |
Jeremy Gebben | da6b48f | 2021-05-13 10:46:18 -0600 | [diff] [blame] | 1328 | "CmdDrawIndirect: drawCount equals 1 and (offset + sizeof(VkDrawIndirectCommand)) (%" PRIu64 ") is not less than " |
| 1329 | "or equal to the size of buffer (%" PRIu64 ").", |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1330 | (offset + sizeof(VkDrawIndirectCommand)), buffer_state->createInfo.size); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1331 | } |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1332 | // TODO: If the drawIndirectFirstInstance feature is not enabled, all the firstInstance members of the |
| 1333 | // VkDrawIndirectCommand structures accessed by this command must be 0, which will require access to the contents of 'buffer'. |
| 1334 | return skip; |
| 1335 | } |
| 1336 | |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1337 | bool CoreChecks::PreCallValidateCmdDrawIndexedIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1338 | uint32_t drawCount, uint32_t stride) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1339 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1340 | bool skip = ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWINDEXEDINDIRECT); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1341 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1342 | skip |= ValidateIndirectCmd(*cb_state, *buffer_state, CMD_DRAWINDEXEDINDIRECT); |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1343 | if (drawCount > 1) { |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1344 | skip |= ValidateCmdDrawStrideWithStruct(commandBuffer, "VUID-vkCmdDrawIndexedIndirect-drawCount-00528", stride, |
| 1345 | "VkDrawIndexedIndirectCommand", sizeof(VkDrawIndexedIndirectCommand)); |
| 1346 | skip |= ValidateCmdDrawStrideWithBuffer(commandBuffer, "VUID-vkCmdDrawIndexedIndirect-drawCount-00540", stride, |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1347 | "VkDrawIndexedIndirectCommand", sizeof(VkDrawIndexedIndirectCommand), drawCount, |
Jeremy Gebben | 9f53710 | 2021-10-05 16:37:12 -0600 | [diff] [blame] | 1348 | offset, buffer_state.get()); |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1349 | } else if ((drawCount == 1) && (offset + sizeof(VkDrawIndexedIndirectCommand)) > buffer_state->createInfo.size) { |
| 1350 | skip |= LogError( |
| 1351 | commandBuffer, "VUID-vkCmdDrawIndexedIndirect-drawCount-00539", |
Jeremy Gebben | da6b48f | 2021-05-13 10:46:18 -0600 | [diff] [blame] | 1352 | "CmdDrawIndexedIndirect: drawCount equals 1 and (offset + sizeof(VkDrawIndexedIndirectCommand)) (%" PRIu64 ") is not less than " |
| 1353 | "or equal to the size of buffer (%" PRIu64 ").", |
Tony-LunarG | c0c3df5 | 2020-11-20 13:47:10 -0700 | [diff] [blame] | 1354 | (offset + sizeof(VkDrawIndexedIndirectCommand)), buffer_state->createInfo.size); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1355 | } |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1356 | // TODO: If the drawIndirectFirstInstance feature is not enabled, all the firstInstance members of the |
| 1357 | // VkDrawIndexedIndirectCommand structures accessed by this command must be 0, which will require access to the contents of |
| 1358 | // 'buffer'. |
| 1359 | return skip; |
| 1360 | } |
| 1361 | |
Jeff Bolz | 5c801d1 | 2019-10-09 10:38:45 -0500 | [diff] [blame] | 1362 | bool CoreChecks::PreCallValidateCmdDispatch(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z) const { |
Locke | f39c077 | 2019-04-03 14:40:02 -0600 | [diff] [blame] | 1363 | bool skip = false; |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1364 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1365 | skip |= ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_COMPUTE, CMD_DISPATCH); |
Locke | f39c077 | 2019-04-03 14:40:02 -0600 | [diff] [blame] | 1366 | return skip; |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1367 | } |
| 1368 | |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1369 | bool CoreChecks::ValidateBaseGroups(const CMD_BUFFER_STATE &cb_state, uint32_t baseGroupX, uint32_t baseGroupY, uint32_t baseGroupZ, |
Tony-LunarG | f825e6d | 2020-12-16 13:05:17 -0700 | [diff] [blame] | 1370 | const char *apiName) const { |
| 1371 | bool skip = false; |
| 1372 | if (baseGroupX || baseGroupY || baseGroupZ) { |
Tony-LunarG | f825e6d | 2020-12-16 13:05:17 -0700 | [diff] [blame] | 1373 | const auto lv_bind_point = ConvertToLvlBindPoint(VK_PIPELINE_BIND_POINT_COMPUTE); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1374 | const auto *pipeline_state = cb_state.lastBound[lv_bind_point].pipeline_state; |
Jeremy Gebben | 11af979 | 2021-08-20 10:20:09 -0600 | [diff] [blame] | 1375 | if (pipeline_state && !(pipeline_state->GetPipelineCreateFlags() & VK_PIPELINE_CREATE_DISPATCH_BASE)) { |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1376 | skip |= LogError(cb_state.Handle(), "VUID-vkCmdDispatchBase-baseGroupX-00427", |
Tony-LunarG | f825e6d | 2020-12-16 13:05:17 -0700 | [diff] [blame] | 1377 | "%s(): If any of baseGroupX, baseGroupY, or baseGroupZ are not zero, then the bound compute pipeline " |
| 1378 | "must have been created with the VK_PIPELINE_CREATE_DISPATCH_BASE flag", |
| 1379 | apiName); |
| 1380 | } |
| 1381 | } |
| 1382 | return skip; |
| 1383 | } |
| 1384 | |
locke-lunarg | 25b6c35 | 2020-08-06 17:44:18 -0600 | [diff] [blame] | 1385 | bool CoreChecks::PreCallValidateCmdDispatchBase(VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, |
| 1386 | uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, |
| 1387 | uint32_t groupCountZ) const { |
| 1388 | bool skip = false; |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1389 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1390 | skip |= ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_COMPUTE, CMD_DISPATCHBASE); |
| 1391 | skip |= ValidateBaseGroups(*cb_state, baseGroupX, baseGroupY, baseGroupZ, "vkCmdDispatchBase()"); |
locke-lunarg | 25b6c35 | 2020-08-06 17:44:18 -0600 | [diff] [blame] | 1392 | return skip; |
| 1393 | } |
| 1394 | |
| 1395 | bool CoreChecks::PreCallValidateCmdDispatchBaseKHR(VkCommandBuffer commandBuffer, uint32_t baseGroupX, uint32_t baseGroupY, |
| 1396 | uint32_t baseGroupZ, uint32_t groupCountX, uint32_t groupCountY, |
| 1397 | uint32_t groupCountZ) const { |
| 1398 | bool skip = false; |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1399 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1400 | skip |= ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_COMPUTE, CMD_DISPATCHBASEKHR); |
| 1401 | skip |= ValidateBaseGroups(*cb_state, baseGroupX, baseGroupY, baseGroupZ, "vkCmdDispatchBaseKHR()"); |
locke-lunarg | 25b6c35 | 2020-08-06 17:44:18 -0600 | [diff] [blame] | 1402 | return skip; |
| 1403 | } |
| 1404 | |
Jeff Bolz | 5c801d1 | 2019-10-09 10:38:45 -0500 | [diff] [blame] | 1405 | bool CoreChecks::PreCallValidateCmdDispatchIndirect(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1406 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1407 | bool skip = ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_COMPUTE, CMD_DISPATCHINDIRECT); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1408 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1409 | skip |= ValidateIndirectCmd(*cb_state, *buffer_state, CMD_DISPATCHINDIRECT); |
Tony-LunarG | da555b5 | 2021-01-06 13:43:49 -0700 | [diff] [blame] | 1410 | if ((offset + sizeof(VkDispatchIndirectCommand)) > buffer_state->createInfo.size) { |
| 1411 | skip |= LogError(commandBuffer, "VUID-vkCmdDispatchIndirect-offset-00407", |
| 1412 | "vkCmdDispatchIndirect(): The sum of offset and the size of VkDispatchIndirectCommand is greater than the " |
| 1413 | "size of the buffer"); |
| 1414 | } |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1415 | return skip; |
| 1416 | } |
Tony-LunarG | a74d3fe | 2019-11-22 15:43:20 -0700 | [diff] [blame] | 1417 | bool CoreChecks::ValidateCmdDrawIndirectCount(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1418 | VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1419 | uint32_t stride, CMD_TYPE cmd_type) const { |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1420 | bool skip = false; |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1421 | const char *apiName = CommandTypeString(cmd_type); |
Nathaniel Cesario | 7f231f1 | 2021-03-25 12:10:58 -0600 | [diff] [blame] | 1422 | if ((device_extensions.vk_khr_draw_indirect_count != kEnabledByCreateinfo) && |
| 1423 | ((api_version >= VK_API_VERSION_1_2) && (enabled_features.core12.drawIndirectCount == VK_FALSE))) { |
Shannon McPherson | 2c793ba | 2020-08-28 12:13:24 -0600 | [diff] [blame] | 1424 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawIndirectCount-None-04445", |
sfricke-samsung | 27c7072 | 2020-05-02 08:42:39 -0700 | [diff] [blame] | 1425 | "%s(): Starting in Vulkan 1.2 the VkPhysicalDeviceVulkan12Features::drawIndirectCount must be enabled to " |
| 1426 | "call this command.", |
| 1427 | apiName); |
| 1428 | } |
AndreyVK_D3D | b2753e1 | 2021-07-21 12:24:03 +0300 | [diff] [blame] | 1429 | skip |= ValidateCmdDrawStrideWithStruct(commandBuffer, "VUID-vkCmdDrawIndirectCount-stride-03110", stride, |
| 1430 | "VkDrawIndirectCommand", sizeof(VkDrawIndirectCommand)); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1431 | if (maxDrawCount > 1) { |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1432 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
AndreyVK_D3D | b2753e1 | 2021-07-21 12:24:03 +0300 | [diff] [blame] | 1433 | skip |= ValidateCmdDrawStrideWithBuffer(commandBuffer, "VUID-vkCmdDrawIndirectCount-maxDrawCount-03111", stride, |
| 1434 | "VkDrawIndirectCommand", sizeof(VkDrawIndirectCommand), maxDrawCount, offset, |
Jeremy Gebben | 9f53710 | 2021-10-05 16:37:12 -0600 | [diff] [blame] | 1435 | buffer_state.get()); |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1436 | } |
| 1437 | |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1438 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1439 | skip |= ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, cmd_type); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1440 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1441 | skip |= ValidateIndirectCmd(*cb_state, *buffer_state, cmd_type); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1442 | auto count_buffer_state = Get<BUFFER_STATE>(countBuffer); |
sjfricke | 177bbb6 | 2022-06-02 17:37:03 +0900 | [diff] [blame] | 1443 | skip |= ValidateIndirectCountCmd(*count_buffer_state, countBufferOffset, cmd_type); |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1444 | return skip; |
| 1445 | } |
| 1446 | |
Tony-LunarG | a74d3fe | 2019-11-22 15:43:20 -0700 | [diff] [blame] | 1447 | bool CoreChecks::PreCallValidateCmdDrawIndirectCountKHR(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1448 | VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, |
| 1449 | uint32_t stride) const { |
Tony-LunarG | 83544c7 | 2020-01-17 12:30:19 -0700 | [diff] [blame] | 1450 | return ValidateCmdDrawIndirectCount(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1451 | CMD_DRAWINDIRECTCOUNTKHR); |
Tony-LunarG | a74d3fe | 2019-11-22 15:43:20 -0700 | [diff] [blame] | 1452 | } |
| 1453 | |
| 1454 | bool CoreChecks::PreCallValidateCmdDrawIndirectCount(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1455 | VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, |
| 1456 | uint32_t stride) const { |
Tony-LunarG | 83544c7 | 2020-01-17 12:30:19 -0700 | [diff] [blame] | 1457 | return ValidateCmdDrawIndirectCount(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1458 | CMD_DRAWINDIRECTCOUNT); |
Tony-LunarG | a74d3fe | 2019-11-22 15:43:20 -0700 | [diff] [blame] | 1459 | } |
| 1460 | |
| 1461 | bool CoreChecks::ValidateCmdDrawIndexedIndirectCount(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1462 | VkBuffer countBuffer, VkDeviceSize countBufferOffset, uint32_t maxDrawCount, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1463 | uint32_t stride, CMD_TYPE cmd_type) const { |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1464 | bool skip = false; |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1465 | const char *apiName = CommandTypeString(cmd_type); |
Nathaniel Cesario | 7f231f1 | 2021-03-25 12:10:58 -0600 | [diff] [blame] | 1466 | if ((device_extensions.vk_khr_draw_indirect_count != kEnabledByCreateinfo) && |
| 1467 | ((api_version >= VK_API_VERSION_1_2) && (enabled_features.core12.drawIndirectCount == VK_FALSE))) { |
Shannon McPherson | 2c793ba | 2020-08-28 12:13:24 -0600 | [diff] [blame] | 1468 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawIndexedIndirectCount-None-04445", |
sfricke-samsung | 27c7072 | 2020-05-02 08:42:39 -0700 | [diff] [blame] | 1469 | "%s(): Starting in Vulkan 1.2 the VkPhysicalDeviceVulkan12Features::drawIndirectCount must be enabled to " |
| 1470 | "call this command.", |
| 1471 | apiName); |
| 1472 | } |
AndreyVK_D3D | b2753e1 | 2021-07-21 12:24:03 +0300 | [diff] [blame] | 1473 | skip |= ValidateCmdDrawStrideWithStruct(commandBuffer, "VUID-vkCmdDrawIndexedIndirectCount-stride-03142", stride, |
| 1474 | "VkDrawIndexedIndirectCommand", sizeof(VkDrawIndexedIndirectCommand)); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1475 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1476 | if (maxDrawCount > 1) { |
Mike Schuchardt | 65847d9 | 2019-12-20 13:50:47 -0800 | [diff] [blame] | 1477 | skip |= ValidateCmdDrawStrideWithBuffer(commandBuffer, "VUID-vkCmdDrawIndexedIndirectCount-maxDrawCount-03143", stride, |
AndreyVK_D3D | b2753e1 | 2021-07-21 12:24:03 +0300 | [diff] [blame] | 1478 | "VkDrawIndexedIndirectCommand", sizeof(VkDrawIndexedIndirectCommand), maxDrawCount, |
Jeremy Gebben | 9f53710 | 2021-10-05 16:37:12 -0600 | [diff] [blame] | 1479 | offset, buffer_state.get()); |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1480 | } |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1481 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1482 | skip |= ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_GRAPHICS, cmd_type); |
| 1483 | skip |= ValidateIndirectCmd(*cb_state, *buffer_state, cmd_type); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1484 | auto count_buffer_state = Get<BUFFER_STATE>(countBuffer); |
sjfricke | 177bbb6 | 2022-06-02 17:37:03 +0900 | [diff] [blame] | 1485 | skip |= ValidateIndirectCountCmd(*count_buffer_state, countBufferOffset, cmd_type); |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1486 | return skip; |
| 1487 | } |
| 1488 | |
Tony-LunarG | a74d3fe | 2019-11-22 15:43:20 -0700 | [diff] [blame] | 1489 | bool CoreChecks::PreCallValidateCmdDrawIndexedIndirectCountKHR(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1490 | VkBuffer countBuffer, VkDeviceSize countBufferOffset, |
| 1491 | uint32_t maxDrawCount, uint32_t stride) const { |
sfricke-samsung | f692b97 | 2020-05-02 08:00:45 -0700 | [diff] [blame] | 1492 | return ValidateCmdDrawIndexedIndirectCount(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1493 | CMD_DRAWINDEXEDINDIRECTCOUNTKHR); |
Tony-LunarG | a74d3fe | 2019-11-22 15:43:20 -0700 | [diff] [blame] | 1494 | } |
| 1495 | |
| 1496 | bool CoreChecks::PreCallValidateCmdDrawIndexedIndirectCount(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1497 | VkBuffer countBuffer, VkDeviceSize countBufferOffset, |
| 1498 | uint32_t maxDrawCount, uint32_t stride) const { |
sfricke-samsung | f692b97 | 2020-05-02 08:00:45 -0700 | [diff] [blame] | 1499 | return ValidateCmdDrawIndexedIndirectCount(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride, |
sfricke-samsung | 85584a7 | 2021-09-30 21:43:38 -0700 | [diff] [blame] | 1500 | CMD_DRAWINDEXEDINDIRECTCOUNT); |
Tony-LunarG | a74d3fe | 2019-11-22 15:43:20 -0700 | [diff] [blame] | 1501 | } |
| 1502 | |
locke-lunarg | 9a16ebb | 2020-07-30 16:56:33 -0600 | [diff] [blame] | 1503 | bool CoreChecks::PreCallValidateCmdDrawIndirectByteCountEXT(VkCommandBuffer commandBuffer, uint32_t instanceCount, |
| 1504 | uint32_t firstInstance, VkBuffer counterBuffer, |
| 1505 | VkDeviceSize counterBufferOffset, uint32_t counterOffset, |
| 1506 | uint32_t vertexStride) const { |
sfricke-samsung | d5e9adb | 2020-10-26 03:59:29 -0700 | [diff] [blame] | 1507 | bool skip = false; |
Tony-LunarG | 2c94ba8 | 2020-11-05 14:21:40 -0700 | [diff] [blame] | 1508 | if (!enabled_features.transform_feedback_features.transformFeedback) { |
| 1509 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawIndirectByteCountEXT-transformFeedback-02287", |
| 1510 | "%s: transformFeedback feature is not enabled.", "vkCmdDrawIndirectByteCountEXT()"); |
| 1511 | } |
sfricke-samsung | 45996a4 | 2021-09-16 13:45:27 -0700 | [diff] [blame] | 1512 | if (IsExtEnabled(device_extensions.vk_ext_transform_feedback) && |
| 1513 | !phys_dev_ext_props.transform_feedback_props.transformFeedbackDraw) { |
sfricke-samsung | ba459bd | 2020-12-06 23:20:04 -0800 | [diff] [blame] | 1514 | skip |= LogError(commandBuffer, "VUID-vkCmdDrawIndirectByteCountEXT-transformFeedbackDraw-02288", |
Tony-LunarG | 2c94ba8 | 2020-11-05 14:21:40 -0700 | [diff] [blame] | 1515 | "%s: VkPhysicalDeviceTransformFeedbackPropertiesEXT::transformFeedbackDraw is not supported", |
| 1516 | "vkCmdDrawIndirectByteCountEXT()"); |
| 1517 | } |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1518 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1519 | skip |= ValidateCmdDrawInstance(*cb_state, instanceCount, firstInstance, CMD_DRAWINDIRECTBYTECOUNTEXT); |
| 1520 | skip |= ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWINDIRECTBYTECOUNTEXT); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1521 | auto counter_buffer_state = Get<BUFFER_STATE>(counterBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1522 | skip |= ValidateIndirectCmd(*cb_state, *counter_buffer_state, CMD_DRAWINDIRECTBYTECOUNTEXT); |
sfricke-samsung | d5e9adb | 2020-10-26 03:59:29 -0700 | [diff] [blame] | 1523 | return skip; |
locke-lunarg | 9a16ebb | 2020-07-30 16:56:33 -0600 | [diff] [blame] | 1524 | } |
| 1525 | |
Jeff Bolz | f6e872c | 2019-10-22 12:17:28 -0500 | [diff] [blame] | 1526 | bool CoreChecks::PreCallValidateCmdTraceRaysNV(VkCommandBuffer commandBuffer, VkBuffer raygenShaderBindingTableBuffer, |
| 1527 | VkDeviceSize raygenShaderBindingOffset, VkBuffer missShaderBindingTableBuffer, |
| 1528 | VkDeviceSize missShaderBindingOffset, VkDeviceSize missShaderBindingStride, |
| 1529 | VkBuffer hitShaderBindingTableBuffer, VkDeviceSize hitShaderBindingOffset, |
| 1530 | VkDeviceSize hitShaderBindingStride, VkBuffer callableShaderBindingTableBuffer, |
| 1531 | VkDeviceSize callableShaderBindingOffset, VkDeviceSize callableShaderBindingStride, |
| 1532 | uint32_t width, uint32_t height, uint32_t depth) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1533 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1534 | bool skip = ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_RAY_TRACING_NV, CMD_TRACERAYSNV); |
Jeremy Gebben | b20a824 | 2021-11-05 15:14:43 -0600 | [diff] [blame] | 1535 | auto callable_shader_buffer_state = Get<BUFFER_STATE>(callableShaderBindingTableBuffer); |
sourav parmar | d152180 | 2020-06-07 21:49:02 -0700 | [diff] [blame] | 1536 | if (callable_shader_buffer_state && callableShaderBindingOffset >= callable_shader_buffer_state->createInfo.size) { |
| 1537 | skip |= LogError(commandBuffer, "VUID-vkCmdTraceRaysNV-callableShaderBindingOffset-02461", |
| 1538 | "vkCmdTraceRaysNV: callableShaderBindingOffset %" PRIu64 |
| 1539 | " must be less than the size of callableShaderBindingTableBuffer %" PRIu64 " .", |
| 1540 | callableShaderBindingOffset, callable_shader_buffer_state->createInfo.size); |
| 1541 | } |
Jeremy Gebben | b20a824 | 2021-11-05 15:14:43 -0600 | [diff] [blame] | 1542 | auto hit_shader_buffer_state = Get<BUFFER_STATE>(hitShaderBindingTableBuffer); |
sourav parmar | d152180 | 2020-06-07 21:49:02 -0700 | [diff] [blame] | 1543 | if (hit_shader_buffer_state && hitShaderBindingOffset >= hit_shader_buffer_state->createInfo.size) { |
| 1544 | skip |= LogError(commandBuffer, "VUID-vkCmdTraceRaysNV-hitShaderBindingOffset-02459", |
| 1545 | "vkCmdTraceRaysNV: hitShaderBindingOffset %" PRIu64 |
| 1546 | " must be less than the size of hitShaderBindingTableBuffer %" PRIu64 " .", |
| 1547 | hitShaderBindingOffset, hit_shader_buffer_state->createInfo.size); |
| 1548 | } |
Jeremy Gebben | b20a824 | 2021-11-05 15:14:43 -0600 | [diff] [blame] | 1549 | auto miss_shader_buffer_state = Get<BUFFER_STATE>(missShaderBindingTableBuffer); |
sourav parmar | d152180 | 2020-06-07 21:49:02 -0700 | [diff] [blame] | 1550 | if (miss_shader_buffer_state && missShaderBindingOffset >= miss_shader_buffer_state->createInfo.size) { |
| 1551 | skip |= LogError(commandBuffer, "VUID-vkCmdTraceRaysNV-missShaderBindingOffset-02457", |
| 1552 | "vkCmdTraceRaysNV: missShaderBindingOffset %" PRIu64 |
baldurk | 751594b | 2020-09-09 09:41:02 +0100 | [diff] [blame] | 1553 | " must be less than the size of missShaderBindingTableBuffer %" PRIu64 " .", |
sourav parmar | d152180 | 2020-06-07 21:49:02 -0700 | [diff] [blame] | 1554 | missShaderBindingOffset, miss_shader_buffer_state->createInfo.size); |
| 1555 | } |
Jeremy Gebben | b20a824 | 2021-11-05 15:14:43 -0600 | [diff] [blame] | 1556 | auto raygen_shader_buffer_state = Get<BUFFER_STATE>(raygenShaderBindingTableBuffer); |
sourav parmar | d152180 | 2020-06-07 21:49:02 -0700 | [diff] [blame] | 1557 | if (raygenShaderBindingOffset >= raygen_shader_buffer_state->createInfo.size) { |
| 1558 | skip |= LogError(commandBuffer, "VUID-vkCmdTraceRaysNV-raygenShaderBindingOffset-02455", |
| 1559 | "vkCmdTraceRaysNV: raygenShaderBindingOffset %" PRIu64 |
baldurk | 751594b | 2020-09-09 09:41:02 +0100 | [diff] [blame] | 1560 | " must be less than the size of raygenShaderBindingTableBuffer %" PRIu64 " .", |
sourav parmar | d152180 | 2020-06-07 21:49:02 -0700 | [diff] [blame] | 1561 | raygenShaderBindingOffset, raygen_shader_buffer_state->createInfo.size); |
| 1562 | } |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1563 | |
sourav parmar | 30e1939 | 2020-12-02 16:57:21 -0800 | [diff] [blame] | 1564 | const auto lv_bind_point = ConvertToLvlBindPoint(VK_PIPELINE_BIND_POINT_RAY_TRACING_NV); |
| 1565 | const PIPELINE_STATE *pipeline_state = cb_state->lastBound[lv_bind_point].pipeline_state; |
Jeremy Gebben | 14b0d1a | 2021-05-15 20:15:41 -0600 | [diff] [blame] | 1566 | if (!pipeline_state || (pipeline_state && !pipeline_state->pipeline())) { |
sourav parmar | 30e1939 | 2020-12-02 16:57:21 -0800 | [diff] [blame] | 1567 | skip |= LogError(device, "VUID-vkCmdTraceRaysNV-None-02700", |
| 1568 | "vkCmdTraceRaysKHR: A valid pipeline must be bound to the pipeline bind point used by this command."); |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1569 | } |
Jeff Bolz | f6e872c | 2019-10-22 12:17:28 -0500 | [diff] [blame] | 1570 | return skip; |
| 1571 | } |
| 1572 | |
Jeff Bolz | 443c2ca | 2020-03-19 12:11:51 -0500 | [diff] [blame] | 1573 | bool CoreChecks::PreCallValidateCmdTraceRaysKHR(VkCommandBuffer commandBuffer, |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1574 | const VkStridedDeviceAddressRegionKHR *pRaygenShaderBindingTable, |
| 1575 | const VkStridedDeviceAddressRegionKHR *pMissShaderBindingTable, |
| 1576 | const VkStridedDeviceAddressRegionKHR *pHitShaderBindingTable, |
| 1577 | const VkStridedDeviceAddressRegionKHR *pCallableShaderBindingTable, uint32_t width, |
Jeff Bolz | 443c2ca | 2020-03-19 12:11:51 -0500 | [diff] [blame] | 1578 | uint32_t height, uint32_t depth) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1579 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1580 | bool skip = ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR, CMD_TRACERAYSKHR); |
Shannon McPherson | 9caca05 | 2020-11-25 11:34:38 -0700 | [diff] [blame] | 1581 | const auto lv_bind_point = ConvertToLvlBindPoint(VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR); |
| 1582 | const PIPELINE_STATE *pipeline_state = cb_state->lastBound[lv_bind_point].pipeline_state; |
Jeremy Gebben | 14b0d1a | 2021-05-15 20:15:41 -0600 | [diff] [blame] | 1583 | if (!pipeline_state || (pipeline_state && !pipeline_state->pipeline())) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1584 | skip |= LogError(device, "VUID-vkCmdTraceRaysKHR-None-02700", |
| 1585 | "vkCmdTraceRaysKHR: A valid pipeline must be bound to the pipeline bind point used by this command."); |
| 1586 | } else { // bound to valid RT pipeline |
Jeremy Gebben | 11af979 | 2021-08-20 10:20:09 -0600 | [diff] [blame] | 1587 | if (pipeline_state->GetPipelineCreateFlags() & VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1588 | if (!pHitShaderBindingTable->deviceAddress) { |
| 1589 | skip |= LogError(device, "VUID-vkCmdTraceRaysKHR-flags-03697", |
| 1590 | "vkCmdTraceRaysKHR: If the currently bound ray tracing pipeline was created with flags " |
| 1591 | "that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR, the " |
| 1592 | "deviceAddress member of pHitShaderBindingTable must not be zero."); |
| 1593 | } |
| 1594 | if (!pHitShaderBindingTable || pHitShaderBindingTable->size == 0 || pHitShaderBindingTable->stride == 0) { |
| 1595 | skip |= LogError(device, "VUID-vkCmdTraceRaysKHR-flags-03514", |
| 1596 | "vkCmdTraceRaysKHR: If the currently bound ray tracing pipeline was created with " |
| 1597 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR, " |
| 1598 | "entries in pHitShaderBindingTable accessed as a result of this command in order to " |
| 1599 | "execute an intersection shader must not be set to zero."); |
| 1600 | } |
| 1601 | } |
Jeremy Gebben | 11af979 | 2021-08-20 10:20:09 -0600 | [diff] [blame] | 1602 | if (pipeline_state->GetPipelineCreateFlags() & VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1603 | if (!pHitShaderBindingTable->deviceAddress) { |
| 1604 | skip |= LogError(device, "VUID-vkCmdTraceRaysKHR-flags-03696", |
| 1605 | "vkCmdTraceRaysKHR: If the currently bound ray tracing pipeline was created with flags " |
| 1606 | "that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR, the " |
| 1607 | "deviceAddress member of pHitShaderBindingTable must not be zero."); |
| 1608 | } |
| 1609 | if (!pHitShaderBindingTable || pHitShaderBindingTable->size == 0 || pHitShaderBindingTable->stride == 0) { |
| 1610 | skip |= LogError(device, "VUID-vkCmdTraceRaysKHR-flags-03513", |
| 1611 | "vkCmdTraceRaysKHR: If the currently bound ray tracing pipeline was created with " |
| 1612 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR, " |
| 1613 | "entries in pHitShaderBindingTable accessed as a result of this command in order to " |
| 1614 | "execute a closest hit shader must not be set to zero."); |
| 1615 | } |
| 1616 | } |
Jeremy Gebben | 11af979 | 2021-08-20 10:20:09 -0600 | [diff] [blame] | 1617 | if (pipeline_state->GetPipelineCreateFlags() & VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1618 | if (!pHitShaderBindingTable || pHitShaderBindingTable->size == 0 || pHitShaderBindingTable->stride == 0) { |
| 1619 | skip |= LogError(device, "VUID-vkCmdTraceRaysKHR-flags-03512", |
| 1620 | "vkCmdTraceRaysKHR: If the currently bound ray tracing pipeline was created with " |
| 1621 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR, " |
| 1622 | "entries in pHitShaderBindingTable accessed as a result of this command in order to " |
| 1623 | "execute an any hit shader must not be set to zero."); |
| 1624 | } |
| 1625 | } |
| 1626 | } |
Jeff Bolz | 443c2ca | 2020-03-19 12:11:51 -0500 | [diff] [blame] | 1627 | return skip; |
| 1628 | } |
| 1629 | |
Jeff Bolz | 443c2ca | 2020-03-19 12:11:51 -0500 | [diff] [blame] | 1630 | bool CoreChecks::PreCallValidateCmdTraceRaysIndirectKHR(VkCommandBuffer commandBuffer, |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1631 | const VkStridedDeviceAddressRegionKHR *pRaygenShaderBindingTable, |
| 1632 | const VkStridedDeviceAddressRegionKHR *pMissShaderBindingTable, |
| 1633 | const VkStridedDeviceAddressRegionKHR *pHitShaderBindingTable, |
| 1634 | const VkStridedDeviceAddressRegionKHR *pCallableShaderBindingTable, |
| 1635 | VkDeviceAddress indirectDeviceAddress) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1636 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1637 | bool skip = ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR, CMD_TRACERAYSINDIRECTKHR); |
Shannon McPherson | 9caca05 | 2020-11-25 11:34:38 -0700 | [diff] [blame] | 1638 | const auto lv_bind_point = ConvertToLvlBindPoint(VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR); |
Jeremy Gebben | b20a824 | 2021-11-05 15:14:43 -0600 | [diff] [blame] | 1639 | const auto *pipeline_state = cb_state->lastBound[lv_bind_point].pipeline_state; |
Jeremy Gebben | 14b0d1a | 2021-05-15 20:15:41 -0600 | [diff] [blame] | 1640 | if (!pipeline_state || (pipeline_state && !pipeline_state->pipeline())) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1641 | skip |= |
| 1642 | LogError(device, "VUID-vkCmdTraceRaysIndirectKHR-None-02700", |
| 1643 | "vkCmdTraceRaysIndirectKHR: A valid pipeline must be bound to the pipeline bind point used by this command."); |
| 1644 | } else { // valid bind point |
Jeremy Gebben | 11af979 | 2021-08-20 10:20:09 -0600 | [diff] [blame] | 1645 | if (pipeline_state->GetPipelineCreateFlags() & VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1646 | if (!pHitShaderBindingTable || pHitShaderBindingTable->deviceAddress == 0) { |
| 1647 | skip |= LogError(device, "VUID-vkCmdTraceRaysIndirectKHR-flags-03697", |
| 1648 | "vkCmdTraceRaysIndirectKHR: If the currently bound ray tracing pipeline was created with " |
| 1649 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR, the " |
| 1650 | "deviceAddress member of pHitShaderBindingTable must not be zero."); |
| 1651 | } |
| 1652 | if (!pHitShaderBindingTable || pHitShaderBindingTable->size == 0 || pHitShaderBindingTable->stride == 0) { |
| 1653 | skip |= LogError(device, "VUID-vkCmdTraceRaysIndirectKHR-flags-03514", |
| 1654 | "vkCmdTraceRaysIndirectKHR: If the currently bound ray tracing pipeline was created with " |
| 1655 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_INTERSECTION_SHADERS_BIT_KHR, " |
| 1656 | "entries in pHitShaderBindingTable accessed as a result of this command in order to " |
| 1657 | "execute an intersection shader must not be set to zero."); |
| 1658 | } |
| 1659 | } |
Jeremy Gebben | 11af979 | 2021-08-20 10:20:09 -0600 | [diff] [blame] | 1660 | if (pipeline_state->GetPipelineCreateFlags() & VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1661 | if (!pHitShaderBindingTable || pHitShaderBindingTable->deviceAddress == 0) { |
| 1662 | skip |= LogError(device, "VUID-vkCmdTraceRaysIndirectKHR-flags-03696", |
| 1663 | "vkCmdTraceRaysIndirectKHR:If the currently bound ray tracing pipeline was created with " |
| 1664 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR, " |
| 1665 | "the deviceAddress member of pHitShaderBindingTable must not be zero."); |
| 1666 | } |
| 1667 | if (!pHitShaderBindingTable || pHitShaderBindingTable->size == 0 || pHitShaderBindingTable->stride == 0) { |
| 1668 | skip |= LogError(device, "VUID-vkCmdTraceRaysIndirectKHR-flags-03513", |
| 1669 | "vkCmdTraceRaysIndirectKHR: If the currently bound ray tracing pipeline was created with " |
| 1670 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_CLOSEST_HIT_SHADERS_BIT_KHR, " |
| 1671 | "entries in pHitShaderBindingTable accessed as a result of this command in order to " |
| 1672 | "execute a closest hit shader must not be set to zero."); |
| 1673 | } |
| 1674 | } |
Jeremy Gebben | 11af979 | 2021-08-20 10:20:09 -0600 | [diff] [blame] | 1675 | if (pipeline_state->GetPipelineCreateFlags() & VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR) { |
sourav parmar | cd5fb18 | 2020-07-17 12:58:44 -0700 | [diff] [blame] | 1676 | if (!pHitShaderBindingTable || pHitShaderBindingTable->size == 0 || pHitShaderBindingTable->stride == 0) { |
| 1677 | skip |= LogError(device, "VUID-vkCmdTraceRaysIndirectKHR-flags-03512", |
| 1678 | "vkCmdTraceRaysIndirectKHR: If the currently bound ray tracing pipeline was created with " |
| 1679 | "flags that included VK_PIPELINE_CREATE_RAY_TRACING_NO_NULL_ANY_HIT_SHADERS_BIT_KHR, " |
| 1680 | "entries in pHitShaderBindingTable accessed as a result of this command in order to " |
| 1681 | "execute an any hit shader must not be set to zero."); |
| 1682 | } |
| 1683 | } |
| 1684 | } |
Jeff Bolz | 443c2ca | 2020-03-19 12:11:51 -0500 | [diff] [blame] | 1685 | return skip; |
| 1686 | } |
| 1687 | |
sfricke-samsung | f91881c | 2022-03-31 01:12:00 -0500 | [diff] [blame] | 1688 | bool CoreChecks::PreCallValidateCmdTraceRaysIndirect2KHR(VkCommandBuffer commandBuffer, |
| 1689 | VkDeviceAddress indirectDeviceAddress) const { |
| 1690 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
| 1691 | bool skip = ValidateCmdDrawType(*cb_state, true, VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR, CMD_TRACERAYSINDIRECTKHR); |
| 1692 | return skip; |
| 1693 | } |
| 1694 | |
Jeff Bolz | 5c801d1 | 2019-10-09 10:38:45 -0500 | [diff] [blame] | 1695 | bool CoreChecks::PreCallValidateCmdDrawMeshTasksNV(VkCommandBuffer commandBuffer, uint32_t taskCount, uint32_t firstTask) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1696 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1697 | bool skip = ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWMESHTASKSNV); |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1698 | return skip; |
| 1699 | } |
| 1700 | |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1701 | bool CoreChecks::PreCallValidateCmdDrawMeshTasksIndirectNV(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
Jeff Bolz | 5c801d1 | 2019-10-09 10:38:45 -0500 | [diff] [blame] | 1702 | uint32_t drawCount, uint32_t stride) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1703 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1704 | bool skip = ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWMESHTASKSINDIRECTNV); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1705 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1706 | skip |= ValidateIndirectCmd(*cb_state, *buffer_state, CMD_DRAWMESHTASKSINDIRECTNV); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1707 | if (drawCount > 1) { |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1708 | skip |= ValidateCmdDrawStrideWithBuffer(commandBuffer, "VUID-vkCmdDrawMeshTasksIndirectNV-drawCount-02157", stride, |
| 1709 | "VkDrawMeshTasksIndirectCommandNV", sizeof(VkDrawMeshTasksIndirectCommandNV), |
Jeremy Gebben | 9f53710 | 2021-10-05 16:37:12 -0600 | [diff] [blame] | 1710 | drawCount, offset, buffer_state.get()); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1711 | } |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1712 | return skip; |
| 1713 | } |
| 1714 | |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1715 | bool CoreChecks::PreCallValidateCmdDrawMeshTasksIndirectCountNV(VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, |
| 1716 | VkBuffer countBuffer, VkDeviceSize countBufferOffset, |
Jeff Bolz | 5c801d1 | 2019-10-09 10:38:45 -0500 | [diff] [blame] | 1717 | uint32_t maxDrawCount, uint32_t stride) const { |
Jeremy Gebben | b68fa02 | 2022-01-28 10:08:37 -0700 | [diff] [blame] | 1718 | auto cb_state = GetRead<CMD_BUFFER_STATE>(commandBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1719 | bool skip = ValidateCmdDrawType(*cb_state, false, VK_PIPELINE_BIND_POINT_GRAPHICS, CMD_DRAWMESHTASKSINDIRECTCOUNTNV); |
Jeremy Gebben | f444939 | 2022-01-28 10:09:10 -0700 | [diff] [blame] | 1720 | auto buffer_state = Get<BUFFER_STATE>(buffer); |
| 1721 | auto count_buffer_state = Get<BUFFER_STATE>(countBuffer); |
Jeremy Gebben | e5361dd | 2021-11-18 14:23:56 -0700 | [diff] [blame] | 1722 | skip |= ValidateIndirectCmd(*cb_state, *buffer_state, CMD_DRAWMESHTASKSINDIRECTCOUNTNV); |
sjfricke | 177bbb6 | 2022-06-02 17:37:03 +0900 | [diff] [blame] | 1723 | skip |= ValidateIndirectCountCmd(*count_buffer_state, countBufferOffset, CMD_DRAWMESHTASKSINDIRECTCOUNTNV); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1724 | skip |= ValidateCmdDrawStrideWithStruct(commandBuffer, "VUID-vkCmdDrawMeshTasksIndirectCountNV-stride-02182", stride, |
| 1725 | "VkDrawMeshTasksIndirectCommandNV", sizeof(VkDrawMeshTasksIndirectCommandNV)); |
| 1726 | if (maxDrawCount > 1) { |
| 1727 | skip |= ValidateCmdDrawStrideWithBuffer(commandBuffer, "VUID-vkCmdDrawMeshTasksIndirectCountNV-maxDrawCount-02183", stride, |
| 1728 | "VkDrawMeshTasksIndirectCommandNV", sizeof(VkDrawMeshTasksIndirectCommandNV), |
Jeremy Gebben | 9f53710 | 2021-10-05 16:37:12 -0600 | [diff] [blame] | 1729 | maxDrawCount, offset, buffer_state.get()); |
Locke | e68ac65 | 2019-05-06 10:17:33 -0600 | [diff] [blame] | 1730 | } |
Jasper St. Pierre | 512613a | 2019-04-08 16:25:23 -0700 | [diff] [blame] | 1731 | return skip; |
| 1732 | } |