intel: Avoid taking logbase2 of several things that we max.
authorEric Anholt <eric@anholt.net>
Wed, 3 Nov 2010 03:30:41 +0000 (20:30 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 3 Nov 2010 13:08:27 +0000 (06:08 -0700)
commit0300c9ab54f80bb7f172672c8e748721c658f660
treea8e05ed6e43d533cfc482ca19be8b9e77b1f7274
parente42ce160b1854dae395c1c393eb546a4fe902c7f
intel: Avoid taking logbase2 of several things that we max.

logbase2(max(width, height, depth)) ==
max(logbase2(width), logbase2(height), logbase2(depth)), but in 60
bytes less code.
src/mesa/drivers/dri/intel/intel_tex_image.c