util: Do not include immintrin.h in half_float.h
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Tue, 27 Jun 2023 11:24:08 +0000 (13:24 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 28 Jun 2023 18:56:20 +0000 (18:56 +0000)
commitc9a5cac4ffa441b46000c8be0ae1b5b1819da9c9
tree6a71f15353e90c0ad77c4f93a927d35f5b094237
parent189c7d6ff1581889c729b296ce769a21debb6b0b
util: Do not include immintrin.h in half_float.h

The files included are extremely large and hurt compile time of
everything that inludes half_float.h directly or indirectly.

Compile time of a fresh RADV build:
before 32.477s 32.661s 32.625s
after  25.116s 24.928s 25.114s

v2: Include xmmintrin instead (Marek Olšák)
after  25.552s 25.811s 25.678s

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23871>
src/util/half_float.h