[Mesa-dev] [PATCH v3 19/43] i965/fs: Support push constants of 16-bit types
Pohjolainen, Topi
topi.pohjolainen at gmail.com
Sat Oct 14 08:02:26 UTC 2017
On Thu, Oct 12, 2017 at 08:38:08PM +0200, Jose Maria Casanova Crespo wrote:
> We enable the use of 16-bit values in push constants
> modifying the assign_constant_locations function to work
> with 16-bit types.
>
> The API to access buffers in Vulkan use multiples of 4-byte for
> offsets and sizes. Current accountability of uniforms based on 4-byte
> slots will work for 16-bit values if they are allowed to use 32-bit
> slots. For that, we replace the division by 4 by a DIV_ROUND_UP, so
> 2-byte elements will use 1 slot instead of 0.
>
> We aligns the 16-bit locations after assigning the 32-bit
s/aligns/align/
More information about the mesa-dev
mailing list