Re: [Mesa-dev] [PATCH] radv: fix shared memory load/stores.

2017-02-03 Thread Bas Nieuwenhuizen
On Fri, Feb 3, 2017, at 06:33, Dave Airlie wrote: > On 3 February 2017 at 13:35, Dave Airlie wrote: > > From: Dave Airlie > > > > If we have an indirect index here we need to scale it by attribute slots > > e.g. is this is vec2[256] then we get an indir_index in the 0.255 range > > but the vec2

Re: [Mesa-dev] [PATCH] radv: fix shared memory load/stores.

2017-02-02 Thread Dave Airlie
On 3 February 2017 at 13:35, Dave Airlie wrote: > From: Dave Airlie > > If we have an indirect index here we need to scale it by attribute slots > e.g. is this is vec2[256] then we get an indir_index in the 0.255 range > but the vec2 are aligned inside vec4 slots. So scale the indir index, > then

[Mesa-dev] [PATCH] radv: fix shared memory load/stores.

2017-02-02 Thread Dave Airlie
From: Dave Airlie If we have an indirect index here we need to scale it by attribute slots e.g. is this is vec2[256] then we get an indir_index in the 0.255 range but the vec2 are aligned inside vec4 slots. So scale the indir index, then extract the channels. This appears to fix DOOM for me. Si