Re: [Mesa-dev] [PATCH v3 28/43] anv/cmd_buffer: Add a padding to the vertex buffer

2017-11-01 Thread Jason Ekstrand
On Sun, Oct 15, 2017 at 3:28 AM, Pohjolainen, Topi < topi.pohjolai...@gmail.com> wrote: > On Thu, Oct 12, 2017 at 08:38:17PM +0200, Jose Maria Casanova Crespo wrote: > > From: Alejandro Piñeiro > > > > As we are using 32-bit surface formats with 16-bit elements we can be > > on a situation where

Re: [Mesa-dev] [PATCH v3 28/43] anv/cmd_buffer: Add a padding to the vertex buffer

2017-10-16 Thread Alejandro Piñeiro
On 15/10/17 12:28, Pohjolainen, Topi wrote: > On Thu, Oct 12, 2017 at 08:38:17PM +0200, Jose Maria Casanova Crespo wrote: >> From: Alejandro Piñeiro >> >> As we are using 32-bit surface formats with 16-bit elements we can be >> on a situation where a vertex element can poke over the buffer by 2

Re: [Mesa-dev] [PATCH v3 28/43] anv/cmd_buffer: Add a padding to the vertex buffer

2017-10-15 Thread Pohjolainen, Topi
On Thu, Oct 12, 2017 at 08:38:17PM +0200, Jose Maria Casanova Crespo wrote: > From: Alejandro Piñeiro > > As we are using 32-bit surface formats with 16-bit elements we can be > on a situation where a vertex element can poke over the buffer by 2 > bytes. To avoid that we add a padding when flushi

[Mesa-dev] [PATCH v3 28/43] anv/cmd_buffer: Add a padding to the vertex buffer

2017-10-12 Thread Jose Maria Casanova Crespo
From: Alejandro Piñeiro As we are using 32-bit surface formats with 16-bit elements we can be on a situation where a vertex element can poke over the buffer by 2 bytes. To avoid that we add a padding when flushing the state. This is similar to what the i965 drivers prior to Haswell do, as they u