Vulkan-Docs/chapters/commonvalidity/draw_dispatch_common.txt
Jon Leech 5abf83f95d Change log for April 16, 2019 Vulkan 1.1.107 spec update:
* Update release number to 107.

Public Issues:

  * Fix revision date for the `<<VK_AMD_gpu_shader_half_float>>` appendix
    (public issue 617).
  * Make <<synchronization-pipeline-barriers-subpass-self-dependencies,
    subpass self-dependencies>> less restrictive (public issue 777).
  * Fix the `<<VK_EXT_full_screen_exclusive>>` dependency on
    `<<VK_KHR_win32_surface>>` in `vk.xml` (public pull request 849).
  * Remove single-page (`apispec.html`) refpage sub-targets from the
    Makefile `allman` target and the build instructions. The target is still
    present in the Makefile, but we have not been actively maintaining the
    single-page document and do not promise it will work. The full
    Specification and the individual API reference pages are what we support
    and publish at present (public issue 949).

Internal Issues:

  * De-duplicate common valid usage statements shared by multiple commands
    or structures by using asciidoctor includes and dynamically assigning
    part of the valid usage ID based on which command or structure they're
    being applied to (internal issue 779).
  * Add reference pages for constructs not part of the formal API, such as
    platform calling convention macros, and script changes supporting them
    This required suppressing some check_spec_links warning classes in order
    to pass CI, until a more sophisticated fix can be done (internal issue
    888).
  * Change math notation for the elink:VkPrimitiveTopology descriptions to
    use short forms `v` and `p` instead of `vertex` and `primitive`,
    increasing legibility (internal issue 1611).
  * Rewrite generated file includes relative to a globally specified path,
    fixing some issues with refpage generation (internal issue 1630).
  * Update contributor list for `<<VK_EXT_calibrated_timestamps>>`.
  * Fix use of pathlin in `scripts/generator.py` so the script will work on
    Windows under Python 3.5 (internal merge request 3107).
  * Add missing conditionals around the
    <<descriptorsets-accelerationstructure, Acceleration Structure>>
    section (internal merge request 3108).
  * More script synchronization with OpenXR spec repository (internal merge
    request 3109).
  * Mark the `<<VK_AMD_gpu_shader_half_float>>` and
    `<<VK_AMD_gpu_shader_int16>>` extensions as deprecated in `vk.xml` and
    the corresponding extension appendices (internal merge request 3112).

New Extensions:

  * `<<VK_EXT_headless_surface>>`
2019-04-16 05:19:43 -07:00

117 lines
6.5 KiB
Plaintext

// Common Valid Usage
// Common to all dispatch and drawing commands
* [[VUID-{refpage}-None-02690]]
If a sname:VkImageView is sampled with ename:VK_FILTER_LINEAR as a
result of this command, then the image view's
<<resources-image-view-format-features,format features>> must: contain
ename:VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
* [[VUID-{refpage}-None-02691]]
If a sname:VkImageView is accessed using atomic operations as a result
of this command, then the image view's
<<resources-image-view-format-features,format features>> must: contain
ename:VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
ifdef::VK_IMG_filter_cubic,VK_EXT_filter_cubic[]
* [[VUID-{refpage}-None-02692]]
If a sname:VkImageView is sampled with ename:VK_FILTER_CUBIC_EXT as a
result of this command, then the image view's
<<resources-image-view-format-features,format features>> must: contain
ename:VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
ifndef::VK_EXT_filter_cubic[]
* [[VUID-{refpage}-None-02693]]
Any slink:VkImageView being sampled with ename:VK_FILTER_CUBIC_EXT as a
result of this command must: not have a elink:VkImageViewType of
ename:VK_IMAGE_VIEW_TYPE_3D, ename:VK_IMAGE_VIEW_TYPE_CUBE, or
ename:VK_IMAGE_VIEW_TYPE_CUBE_ARRAY
endif::VK_EXT_filter_cubic[]
ifdef::VK_EXT_filter_cubic[]
* [[VUID-{refpage}-filterCubic-02694]]
Any slink:VkImageView being sampled with ename:VK_FILTER_CUBIC_EXT as a
result of this command must: have a elink:VkImageViewType and format
that supports cubic filtering, as specified by
sname:VkFilterCubicImageViewImageFormatPropertiesEXT::pname:filterCubic
returned by fname:vkGetPhysicalDeviceImageFormatProperties2
* [[VUID-{refpage}-filterCubicMinmax-02695]]
Any slink:VkImageView being sampled with ename:VK_FILTER_CUBIC_EXT with
a reduction mode of either ename:VK_SAMPLER_REDUCTION_MODE_MIN_EXT or
ename:VK_SAMPLER_REDUCTION_MODE_MAX_EXT as a result of this command
must: have a elink:VkImageViewType and format that supports cubic
filtering together with minmax filtering, as specified by
sname:VkFilterCubicImageViewImageFormatPropertiesEXT::pname:filterCubicMinmax
returned by fname:vkGetPhysicalDeviceImageFormatProperties2
endif::VK_EXT_filter_cubic[]
endif::VK_IMG_filter_cubic,VK_EXT_filter_cubic[]
ifdef::VK_NV_corner_sampled_image[]
* [[VUID-{refpage}-flags-02696]]
Any slink:VkImage created with a slink:VkImageCreateInfo::pname:flags
containing ename:VK_IMAGE_CREATE_CORNER_SAMPLED_BIT_NV sampled as a
result of this command must: only be sampled using a
elink:VkSamplerAddressMode of
ename:VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE.
endif::VK_NV_corner_sampled_image[]
* [[VUID-{refpage}-None-02697]]
For each set _n_ that is statically used by the sname:VkPipeline bound
to the pipeline bind point used by this command, a descriptor set must:
have been bound to _n_ at the same pipeline bind point, with a
sname:VkPipelineLayout that is compatible for set _n_, with the
sname:VkPipelineLayout used to create the current sname:VkPipeline, as
described in <<descriptorsets-compatibility>>
* [[VUID-{refpage}-None-02698]]
For each push constant that is statically used by the sname:VkPipeline
bound to the pipeline bind point used by this command, a push constant
value must: have been set for the same pipeline bind point, with a
sname:VkPipelineLayout that is compatible for push constants, with the
sname:VkPipelineLayout used to create the current sname:VkPipeline, as
described in <<descriptorsets-compatibility>>
* [[VUID-{refpage}-None-02699]]
Descriptors in each bound descriptor set, specified via
fname:vkCmdBindDescriptorSets, must: be valid if they are statically
used by the sname:VkPipeline bound to the pipeline bind point used by
this command
* [[VUID-{refpage}-None-02700]]
A valid pipeline must: be bound to the pipeline bind point used by this
command
* [[VUID-{refpage}-commandBuffer-02701]]
If the sname:VkPipeline object bound to the pipeline bind point used by
this command requires any dynamic state, that state must: have been set
for pname:commandBuffer
* [[VUID-{refpage}-None-02702]]
If the sname:VkPipeline object bound to the pipeline bind point used by
this command accesses a sname:VkSampler object that uses unnormalized
coordinates, that sampler must: not be used to sample from any
sname:VkImage with a sname:VkImageView of the type
ename:VK_IMAGE_VIEW_TYPE_3D, ename:VK_IMAGE_VIEW_TYPE_CUBE,
ename:VK_IMAGE_VIEW_TYPE_1D_ARRAY, ename:VK_IMAGE_VIEW_TYPE_2D_ARRAY or
ename:VK_IMAGE_VIEW_TYPE_CUBE_ARRAY, in any shader stage
* [[VUID-{refpage}-None-02703]]
If the sname:VkPipeline object bound to the pipeline bind point used by
this command accesses a sname:VkSampler object that uses unnormalized
coordinates, that sampler must: not be used with any of the SPIR-V
`OpImageSample*` or `OpImageSparseSample*` instructions with
code:ImplicitLod, code:Dref or code:Proj in their name, in any shader
stage
* [[VUID-{refpage}-None-02704]]
If the sname:VkPipeline object bound to the pipeline bind point used by
this command accesses a sname:VkSampler object that uses unnormalized
coordinates, that sampler must: not be used with any of the SPIR-V
`OpImageSample*` or `OpImageSparseSample*` instructions that includes a
LOD bias or any offset values, in any shader stage
* [[VUID-{refpage}-None-02705]]
If the <<features-robustBufferAccess,robust buffer access>> feature is
not enabled, and if the sname:VkPipeline object bound to the pipeline
bind point used by this command accesses a uniform buffer, it must: not
access values outside of the range of the buffer as specified in the
descriptor set bound to the same pipeline bind point
* [[VUID-{refpage}-None-02706]]
If the <<features-robustBufferAccess,robust buffer access>> feature is
not enabled, and if the sname:VkPipeline object bound to the pipeline
bind point used by this command accesses a storage buffer, it must: not
access values outside of the range of the buffer as specified in the
descriptor set bound to the same pipeline bind point
ifdef::VK_VERSION_1_1[]
* [[VUID-{refpage}-commandBuffer-02707]]
If pname:commandBuffer is an unprotected command buffer, any resource
accessed by the sname:VkPipeline object bound to the pipeline bind point
used by this command must: not be a protected resource
endif::VK_VERSION_1_1[]
// Common Valid Usage