diff options
author | Iago Toral Quiroga <itoral@igalia.com> | 2022-03-24 10:05:17 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-28 10:44:13 +0000 |
commit | ea3223e7a4690571583f3a0f2d7c9580952e67d8 (patch) | |
tree | 68f020bb456749ec7a1ff14a8c5876b94da514da /docs | |
parent | 37c0f68500bb6e79239433139a7ef39792ea8100 (diff) |
v3dv: implement VK_EXT_inline_uniform_block
Inline uniform blocks store their contents in pool memory rather
than a separate buffer, and are intended to provide a way in which
some platforms may provide more efficient access to the uniform
data, similar to push constants but with more flexible size
constraints.
We implement these in a similar way as push constants: for constant
access we copy the data in the uniform stream (using the new
QUNIFORM_UNIFORM_UBO_*) enums to identify the inline buffer from
which we need to copy and for indirect access we fallback to
regular UBO access.
Because at NIR level there is no distinction between inline and
regular UBOs and the compiler isn't aware of Vulkan descriptor
sets, we use the UBO index on UBO load intrinsics to identify
inline UBOs, just like we do for push constants. Particularly,
we reserve indices 1..MAX_INLINE_UNIFORM_BUFFERS for this,
however, unlike push constants, inline buffers are accessed
through descriptor sets, and therefore we need to make sure
they are located in the first slots of the UBO descriptor map.
This means we store them in the first MAX_INLINE_UNIFORM_BUFFERS
slots of the map, with regular UBOs always coming after these
slots.
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15575>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/features.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/features.txt b/docs/features.txt index 1b5dc753009..b9976c09a2b 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -483,7 +483,7 @@ Vulkan 1.3 -- all DONE: anv, radv, lvp VK_EXT_4444_formats DONE (anv, lvp, radv, tu, v3dv) VK_EXT_extended_dynamic_state DONE (anv, lvp, radv, tu) VK_EXT_extended_dynamic_state2 DONE (anv, lvp, radv, tu) - VK_EXT_inline_uniform_block DONE (anv, radv) + VK_EXT_inline_uniform_block DONE (anv, radv, v3dv) VK_EXT_pipeline_creation_cache_control DONE (anv, radv, v3dv) VK_EXT_pipeline_creation_feedback DONE (anv, radv, v3dv) VK_EXT_private_data DONE (anv, lvp, radv, tu, v3dv) |