Re: [Intel-gfx] [PATCH libdrm 0/5] improve reuse implementation

2018-03-19 Thread Daniel Vetter
On Fri, Mar 16, 2018 at 05:10:44PM +, Emil Velikov wrote: > On 16 March 2018 at 08:43, Daniel Vetter wrote: > > On Thu, Mar 15, 2018 at 06:20:09PM -0700, James Xiong wrote: > >> From: "Xiong, James" > >> > >> With gem_reuse enabled, when a buffer size

RE: [PATCH libdrm 0/5] improve reuse implementation

2018-03-16 Thread Xiong, James
org >Subject: Re: [PATCH libdrm 0/5] improve reuse implementation > >On Thu, Mar 15, 2018 at 06:20:09PM -0700, James Xiong wrote: >> From: "Xiong, James" <james.xi...@intel.com> >> >> With gem_reuse enabled, when a buffer size is different than the sizes

Re: [Intel-gfx] [PATCH libdrm 0/5] improve reuse implementation

2018-03-16 Thread Emil Velikov
On 16 March 2018 at 08:43, Daniel Vetter wrote: > On Thu, Mar 15, 2018 at 06:20:09PM -0700, James Xiong wrote: >> From: "Xiong, James" >> >> With gem_reuse enabled, when a buffer size is different than >> the sizes of buckets, it is aligned to the next

Re: [PATCH libdrm 0/5] improve reuse implementation

2018-03-16 Thread Daniel Vetter
On Thu, Mar 15, 2018 at 06:20:09PM -0700, James Xiong wrote: > From: "Xiong, James" > > With gem_reuse enabled, when a buffer size is different than > the sizes of buckets, it is aligned to the next bucket's size, > which means about 25% more memory than the requested is

[PATCH libdrm 0/5] improve reuse implementation

2018-03-15 Thread James Xiong
From: "Xiong, James" With gem_reuse enabled, when a buffer size is different than the sizes of buckets, it is aligned to the next bucket's size, which means about 25% more memory than the requested is allocated in the worst senario. For example: Orignal sizeActual