nvfx: new 2D: optimize fragtex format lookup
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Feb 2010 11:47:45 +0000 (12:47 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 18:42:14 +0000 (20:42 +0200)
commit4793f48a19465ad27c3a33d9453a0def78775736
treeed833b6a6c01a5b948630836206e54009254f7cf
parentd983701267de0083cc702e460c841741292cc9b8
nvfx: new 2D: optimize fragtex format lookup

Use an array indexed by the pipe format instead of doing a linear scan.
src/gallium/drivers/nvfx/nv30_fragtex.c
src/gallium/drivers/nvfx/nv40_fragtex.c