[Mesa-dev] [PATCH v3 19/43] i965/fs: Support push constants of 16-bit types

Chema Casanova jmcasanova at igalia.com
Sat Oct 14 14:56:47 UTC 2017

On 14/10/17 10:02, Pohjolainen, Topi wrote:
> 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/
Also fixed.



More information about the mesa-dev mailing list