Re: [Mesa-dev] [PATCH v2 6/6] radeonsi: try to re-use previously deleted bindless descriptor slots

2017-08-04 Thread Marek Olšák
On Fri, Aug 4, 2017 at 10:52 AM, Samuel Pitoiset wrote: > > > On 08/04/2017 10:33 AM, Marek Olšák wrote: >> >> On Fri, Aug 4, 2017 at 10:06 AM, Samuel Pitoiset >> wrote: >>> >>> >>> >>> On 08/01/2017 09:54 PM, Marek Olšák wrote:

Re: [Mesa-dev] [PATCH v2 6/6] radeonsi: try to re-use previously deleted bindless descriptor slots

2017-08-04 Thread Samuel Pitoiset
On 08/04/2017 10:33 AM, Marek Olšák wrote: On Fri, Aug 4, 2017 at 10:06 AM, Samuel Pitoiset wrote: On 08/01/2017 09:54 PM, Marek Olšák wrote: Hi Samuel, Can you move this slot allocator into a util module? It seems generic enough that it could be reused for

Re: [Mesa-dev] [PATCH v2 6/6] radeonsi: try to re-use previously deleted bindless descriptor slots

2017-08-04 Thread Marek Olšák
On Fri, Aug 4, 2017 at 10:06 AM, Samuel Pitoiset wrote: > > > On 08/01/2017 09:54 PM, Marek Olšák wrote: >> >> Hi Samuel, >> >> Can you move this slot allocator into a util module? It seems generic >> enough that it could be reused for "handle" and "ID" allocations. >>

Re: [Mesa-dev] [PATCH v2 6/6] radeonsi: try to re-use previously deleted bindless descriptor slots

2017-08-04 Thread Samuel Pitoiset
On 08/01/2017 09:54 PM, Marek Olšák wrote: Hi Samuel, Can you move this slot allocator into a util module? It seems generic enough that it could be reused for "handle" and "ID" allocations. Some additional notes: - a bit array of uin32_t would be better. bool is too large (1 byte). - "free"

Re: [Mesa-dev] [PATCH v2 6/6] radeonsi: try to re-use previously deleted bindless descriptor slots

2017-08-03 Thread Marek Olšák
On Thu, Aug 3, 2017 at 12:12 PM, Samuel Pitoiset wrote: > > > On 08/01/2017 09:54 PM, Marek Olšák wrote: >> >> Hi Samuel, >> >> Can you move this slot allocator into a util module? It seems generic >> enough that it could be reused for "handle" and "ID" allocations. > >

Re: [Mesa-dev] [PATCH v2 6/6] radeonsi: try to re-use previously deleted bindless descriptor slots

2017-08-03 Thread Samuel Pitoiset
On 08/01/2017 09:54 PM, Marek Olšák wrote: Hi Samuel, Can you move this slot allocator into a util module? It seems generic enough that it could be reused for "handle" and "ID" allocations. What do you mean by "ID" allocations? Some additional notes: - a bit array of uin32_t would be

Re: [Mesa-dev] [PATCH v2 6/6] radeonsi: try to re-use previously deleted bindless descriptor slots

2017-08-01 Thread Marek Olšák
Hi Samuel, Can you move this slot allocator into a util module? It seems generic enough that it could be reused for "handle" and "ID" allocations. Some additional notes: - a bit array of uin32_t would be better. bool is too large (1 byte). - "free" is the inverse of "used", so the "used" array