Re: [Mesa-dev] [PATCH] main: Fix block index when mixing UBO and SSBO blocks

2015-09-30 Thread Iago Toral
On Thu, 2015-10-01 at 09:13 +0300, Tapani Pälli wrote: > > On 09/29/2015 05:38 PM, Iago Toral Quiroga wrote: > > Since we store both in UniformBlocks, we can't just compute the index by > > subtracting the array address start, we need to count the number of > > buffers of the approriate type. > >

Re: [Mesa-dev] [PATCH] main: Fix block index when mixing UBO and SSBO blocks

2015-09-30 Thread Tapani Pälli
On 09/29/2015 05:38 PM, Iago Toral Quiroga wrote: Since we store both in UniformBlocks, we can't just compute the index by subtracting the array address start, we need to count the number of buffers of the approriate type. --- Or we can just fall back to calc_resource_index... that would also

[Mesa-dev] [PATCH] main: Fix block index when mixing UBO and SSBO blocks

2015-09-29 Thread Iago Toral Quiroga
Since we store both in UniformBlocks, we can't just compute the index by subtracting the array address start, we need to count the number of buffers of the approriate type. --- Or we can just fall back to calc_resource_index... that would also work. This should be a bit faster though since it only