Re: [Mesa-dev] [PATCH 62/95] i965/vec4: Add a shuffle_64bit_data helper

2016-09-14 Thread Iago Toral
On Tue, 2016-09-13 at 22:24 -0700, Francisco Jerez wrote: > Iago Toral writes: > > > > > On Mon, 2016-09-12 at 14:19 -0700, Francisco Jerez wrote: > > > > > > Iago Toral Quiroga writes: > > > > > > > > > > > > > > > SIMD4x2 64bit data is stored in

Re: [Mesa-dev] [PATCH 62/95] i965/vec4: Add a shuffle_64bit_data helper

2016-09-13 Thread Francisco Jerez
Iago Toral writes: > On Mon, 2016-09-12 at 14:19 -0700, Francisco Jerez wrote: >> Iago Toral Quiroga writes: >> >> > >> > SIMD4x2 64bit data is stored in register space like this: >> > >> > r0.0:DF  x0 y0 z0 w0 >> > r0.1:DF  x1 y1 z1 w1 >> > >> > When

Re: [Mesa-dev] [PATCH 62/95] i965/vec4: Add a shuffle_64bit_data helper

2016-09-13 Thread Iago Toral
On Mon, 2016-09-12 at 14:19 -0700, Francisco Jerez wrote: > Iago Toral Quiroga writes: > > > > > SIMD4x2 64bit data is stored in register space like this: > > > > r0.0:DF  x0 y0 z0 w0 > > r0.1:DF  x1 y1 z1 w1 > > > > When we need to write data such as this to memory using

Re: [Mesa-dev] [PATCH 62/95] i965/vec4: Add a shuffle_64bit_data helper

2016-09-12 Thread Francisco Jerez
Iago Toral Quiroga writes: > SIMD4x2 64bit data is stored in register space like this: > > r0.0:DF x0 y0 z0 w0 > r0.1:DF x1 y1 z1 w1 > > When we need to write data such as this to memory using 32-bit write > messages we need to shuffle it in this fashion: > > r0.0:DF x0 y0

[Mesa-dev] [PATCH 62/95] i965/vec4: Add a shuffle_64bit_data helper

2016-07-19 Thread Iago Toral Quiroga
SIMD4x2 64bit data is stored in register space like this: r0.0:DF x0 y0 z0 w0 r0.1:DF x1 y1 z1 w1 When we need to write data such as this to memory using 32-bit write messages we need to shuffle it in this fashion: r0.0:DF x0 y0 x1 y1 r0.1:DF z0 w0 z1 w1 and emit two 32-bit write messages,