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 kusmab...@gmail.com 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 kusmab...@gmail.com --- I actually measure an increase in .text

[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 kusmab...@gmail.com --- src/mesa/main/teximage.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git