u_math: Reduce fast-log2 table size from 65k entries back to 256.

This was bumped in 7e584a70c4 ("gallium: increase table size for fast
log/pow functions") presumably to fix conformance of tgsi_exec, but we
don't need that much accuracy in the only place it's used in the tree any
more: softpipe texture sampling.

softpipe glmark2 -b texture:texture-filter=linear FPS +0.335748% +/-
0.220111% (n=20)

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11173>
This commit is contained in:
Emma Anholt 2021-06-03 12:03:36 -07:00 committed by Marge Bot
parent fd3f9eedbe
commit 9cd4b8b73c
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ util_get_float32_exponent(float x)
}
#define LOG2_TABLE_SIZE_LOG2 16
#define LOG2_TABLE_SIZE_LOG2 8
#define LOG2_TABLE_SCALE (1 << LOG2_TABLE_SIZE_LOG2)
#define LOG2_TABLE_SIZE (LOG2_TABLE_SCALE + 1)
extern float log2_table[LOG2_TABLE_SIZE];