Re: [Mesa-dev] [PATCH v4 26/44] i965/fs: Optimize 16-bit SSBO stores by packing two into a 32-bit reg

2017-12-01 Thread Jason Ekstrand
I left some cleanup comments below and one request for an additional comment. Reviewed-by: Jason Ekstrand On Wed, Nov 29, 2017 at 6:57 PM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > From: Eduardo Lima Mitev > > Currently, we use byte-scattered write messages for storing 16-bi

[Mesa-dev] [PATCH v4 26/44] i965/fs: Optimize 16-bit SSBO stores by packing two into a 32-bit reg

2017-11-29 Thread Jose Maria Casanova Crespo
From: Eduardo Lima Mitev Currently, we use byte-scattered write messages for storing 16-bit into an SSBO. This is because untyped surface messages have a fixed 32-bit size. This patch optimizes these 16-bit writes by combining 2 values (e.g, two consecutive components aligned with 32-bits) into