Re: [Mesa-dev] [PATCH 10/11] [RFC] mesa: optimize out the realloc from glCopyTexImagexD()

2015-12-16 Thread Marek Olšák
On Wed, Dec 16, 2015 at 12:05 AM, Miklós Máté wrote: > Apitrace showed this call to be 5ms (9 times per frame), > but in reality it's about 500us. This shortcut makes it 20us. > --- > src/mesa/main/teximage.c | 29 + > 1 file changed, 29

Re: [Mesa-dev] [PATCH 10/11] [RFC] mesa: optimize out the realloc from glCopyTexImagexD()

2015-12-16 Thread Miklós Máté
On 12/16/2015 05:44 PM, Marek Olšák wrote: On Wed, Dec 16, 2015 at 12:05 AM, Miklós Máté wrote: Apitrace showed this call to be 5ms (9 times per frame), but in reality it's about 500us. This shortcut makes it 20us. --- src/mesa/main/teximage.c | 29

[Mesa-dev] [PATCH 10/11] [RFC] mesa: optimize out the realloc from glCopyTexImagexD()

2015-12-15 Thread Miklós Máté
Apitrace showed this call to be 5ms (9 times per frame), but in reality it's about 500us. This shortcut makes it 20us. --- src/mesa/main/teximage.c | 29 + 1 file changed, 29 insertions(+) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index