Re: [Mesa-dev] [PATCH 1/2] mesa: only look up base-format once

2015-08-28 Thread Matt Turner
On Mon, Aug 24, 2015 at 2:02 PM, Erik Faye-Lund wrote: > There's no point in repeatedly looking up the base-format of an > internalformat. So let's cache it in a variable instead. > > Signed-off-by: Erik Faye-Lund > --- I actually measure an increase in .text size with this patch, but marking th

[Mesa-dev] [PATCH 1/2] mesa: only look up base-format once

2015-08-24 Thread Erik Faye-Lund
There's no point in repeatedly looking up the base-format of an internalformat. So let's cache it in a variable instead. Signed-off-by: Erik Faye-Lund --- src/mesa/main/teximage.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/