diff options
author | Jose Maria Casanova Crespo <[email protected]> | 2018-02-20 10:28:41 +0100 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-02-28 21:37:40 -0800 |
commit | 02266f9ba1990eac655ae98b5febf298cc2d33d8 (patch) | |
tree | 37e91dba3afa67234b139ff561c58077d56cc68d /src/intel/vulkan/tests/state_pool.c | |
parent | 23ffb7c2d17f0268b209782a46e6cb838bd63585 (diff) |
spirv/i965/anv: Relax push constant offset assertions being 32-bit aligned
The introduction of 16-bit types with VK_KHR_16bit_storages implies that
push constant offsets could be multiple of 2-bytes. Some assertions are
updated so offsets should be just multiple of size of the base type but
in some cases we can not assume it as doubles aren't aligned to 8 bytes
in some cases.
For 16-bit types, the push constant offset takes into account the
internal offset in the 32-bit uniform bucket adding 2-bytes when we access
not 32-bit aligned elements. In all 32-bit aligned cases it just becomes 0.
v2: Assert offsets to be aligned to the dest type size. (Jason Ekstrand)
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/tests/state_pool.c')
0 files changed, 0 insertions, 0 deletions