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

195 lines
8.6 KiB
Plaintext

== Indirect Commands Generation
[open,refpage='vkCmdReserveSpaceForCommandsNVX',desc='Perform a reservation of command buffer space',type='protos']
--
Command space for generated commands recorded into a secondary command
buffer must: be reserved by calling:
include::{generated}/api/protos/vkCmdReserveSpaceForCommandsNVX.txt[]
* pname:commandBuffer is the secondary command buffer in which the space
for device-generated commands is reserved.
* pname:pProcessCommandsInfo is a pointer to an instance of the
slink:VkCmdReserveSpaceForCommandsInfoNVX structure containing
parameters affecting the reservation of command buffer space.
.Valid Usage
****
* [[VUID-vkCmdReserveSpaceForCommandsNVX-commandBuffer-01329]]
The provided pname:commandBuffer must: not have had a prior space
reservation since its creation or the last reset.
* [[VUID-vkCmdReserveSpaceForCommandsNVX-commandBuffer-01330]]
The state of the pname:commandBuffer must: be legal to execute all
commands within the sequence provided by the
pname:indirectCommandsLayout member of pname:pProcessCommandsInfo.
****
include::{generated}/validity/protos/vkCmdReserveSpaceForCommandsNVX.txt[]
--
[open,refpage='VkCmdReserveSpaceForCommandsInfoNVX',desc='Structure specifying parameters for the reservation of command buffer space',type='structs']
--
include::{generated}/api/structs/VkCmdReserveSpaceForCommandsInfoNVX.txt[]
* pname:sType is the type of this structure.
* pname:pNext is `NULL` or a pointer to an extension-specific structure.
* pname:objectTable is the slink:VkObjectTableNVX to be used for the
generation process.
Only registered objects at the time
flink:vkCmdReserveSpaceForCommandsNVX is called, will be taken into
account for the reservation.
* pname:indirectCommandsLayout is the slink:VkIndirectCommandsLayoutNVX
that must: also be used at generation time.
* pname:maxSequencesCount is the maximum number of sequences for which
command buffer space will be reserved.
include::{generated}/validity/structs/VkCmdReserveSpaceForCommandsInfoNVX.txt[]
--
The generated commands will behave as if they were recorded within the call
to fname:vkCmdReserveSpaceForCommandsNVX, that means they can inherit state
defined in the command buffer prior this call.
However, given the stateless nature of the generated sequences, they will
not affect commands after the reserved space.
Treat the state that can: be affected by the provided
sname:VkIndirectCommandsLayoutNVX as undefined:.
[open,refpage='vkCmdProcessCommandsNVX',desc='Performs the generation of commands on the device',type='protos']
--
The actual generation on the device is handled with:
include::{generated}/api/protos/vkCmdProcessCommandsNVX.txt[]
* pname:commandBuffer is the primary command buffer in which the
generation process takes space.
* pname:pProcessCommandsInfo is a pointer to an instance of the
slink:VkCmdProcessCommandsInfoNVX structure containing parameters
affecting the processing of commands.
include::{generated}/validity/protos/vkCmdProcessCommandsNVX.txt[]
--
[open,refpage='VkCmdProcessCommandsInfoNVX',desc='Structure specifying parameters for the generation of commands',type='structs']
--
include::{generated}/api/structs/VkCmdProcessCommandsInfoNVX.txt[]
* pname:sType is the type of this structure.
* pname:pNext is `NULL` or a pointer to an extension-specific structure.
* pname:objectTable is the slink:VkObjectTableNVX to be used for the
generation process.
Only registered objects at the time
flink:vkCmdReserveSpaceForCommandsNVX is called, will be taken into
account for the reservation.
* pname:indirectCommandsLayout is the slink:VkIndirectCommandsLayoutNVX
that provides the command sequence to generate.
* pname:indirectCommandsTokenCount defines the number of input tokens
used.
* pname:pIndirectCommandsTokens provides an array of
slink:VkIndirectCommandsTokenNVX that reference the input data for each
token command.
* pname:maxSequencesCount is the maximum number of sequences for which
command buffer space will be reserved.
If pname:sequencesCountBuffer is dlink:VK_NULL_HANDLE, this is also the
actual number of sequences generated.
* pname:targetCommandBuffer can: be the secondary slink:VkCommandBuffer in
which the commands should be recorded.
If pname:targetCommandBuffer is `NULL` an implicit reservation as well
as execution takes place on the processing sname:VkCommandBuffer.
* pname:sequencesCountBuffer can: be slink:VkBuffer from which the actual
amount of sequences is sourced from as code:uint32_t value.
* pname:sequencesCountOffset is the byte offset into
pname:sequencesCountBuffer where the count value is stored.
* pname:sequencesIndexBuffer must: be set if
pname:indirectCommandsLayout's
ename:VK_INDIRECT_COMMANDS_LAYOUT_USAGE_INDEXED_SEQUENCES_BIT_NVX is set
and provides the used sequence indices as code:uint32_t array.
Otherwise it must: be dlink:VK_NULL_HANDLE.
* pname:sequencesIndexOffset is the byte offset into
pname:sequencesIndexBuffer where the index values start.
.Valid Usage
****
* [[VUID-VkCmdProcessCommandsInfoNVX-objectTable-01331]]
The provided pname:objectTable must: include all objects referenced by
the generation process
* [[VUID-VkCmdProcessCommandsInfoNVX-indirectCommandsTokenCount-01332]]
pname:indirectCommandsTokenCount must: match the
pname:indirectCommandsLayout's pname:tokenCount
* [[VUID-VkCmdProcessCommandsInfoNVX-tokenType-01333]]
The pname:tokenType member of each entry in the
pname:pIndirectCommandsTokens array must: match the values used at
creation time of pname:indirectCommandsLayout
* [[VUID-VkCmdProcessCommandsInfoNVX-targetCommandBuffer-01334]]
If pname:targetCommandBuffer is provided, it must: have reserved command
space
* [[VUID-VkCmdProcessCommandsInfoNVX-targetCommandBuffer-01335]]
If pname:targetCommandBuffer is provided, the pname:objectTable must:
match the reservation's pname:objectTable and must: have had all
referenced objects registered at reservation time
* [[VUID-VkCmdProcessCommandsInfoNVX-targetCommandBuffer-01336]]
If pname:targetCommandBuffer is provided, the
pname:indirectCommandsLayout must: match the reservation's
pname:indirectCommandsLayout
* [[VUID-VkCmdProcessCommandsInfoNVX-targetCommandBuffer-01337]]
If pname:targetCommandBuffer is provided, the pname:maxSequencesCount
must: not exceed the reservation's pname:maxSequencesCount
* [[VUID-VkCmdProcessCommandsInfoNVX-sequencesCountBuffer-01338]]
If pname:sequencesCountBuffer is used, its usage flag must: have the
ename:VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT bit set
* [[VUID-VkCmdProcessCommandsInfoNVX-sequencesCountBuffer-01339]]
If pname:sequencesCountBuffer is used, pname:sequencesCountOffset must:
be aligned to
sname:VkDeviceGeneratedCommandsLimitsNVX::pname:minSequenceCountBufferOffsetAlignment
* [[VUID-VkCmdProcessCommandsInfoNVX-sequencesIndexBuffer-01340]]
If pname:sequencesIndexBuffer is used, its usage flag must: have the
ename:VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT bit set
* [[VUID-VkCmdProcessCommandsInfoNVX-sequencesIndexBuffer-01341]]
If pname:sequencesIndexBuffer is used, pname:sequencesIndexOffset must:
be aligned to
sname:VkDeviceGeneratedCommandsLimitsNVX::pname:minSequenceIndexBufferOffsetAlignment
****
include::{generated}/validity/structs/VkCmdProcessCommandsInfoNVX.txt[]
--
Referencing the functions defined in <<indirectmdslayout>>,
fname:vkCmdProcessCommandsNVX behaves as:
[source,c]
---------------------------------------------------
// For targetCommandBuffers the existing reservedSpace is reset & overwritten.
VkCommandBuffer cmd = targetCommandBuffer ?
targetCommandBuffer.reservedSpace :
commandBuffer;
uint32_t sequencesCount = sequencesCountBuffer ?
min(maxSequencesCount, sequencesCountBuffer.load_uint32(sequencesCountOffset) :
maxSequencesCount;
cmdProcessAllSequences(cmd, objectTable,
indirectCommandsLayout, pIndirectCommandsTokens,
sequencesCount,
sequencesIndexBuffer, sequencesIndexOffset);
// The stateful commands within indirectCommandsLayout will not
// affect the state of subsequent commands in the target
// command buffer (cmd)
---------------------------------------------------
[NOTE]
.Note
====
It is important to note that the state that may be affected through
generated commands must: be considered undefined: for the commands following
them.
It is not possible to setup generated state and provoking work that uses
this state outside of the generated sequence.
====