aco: use v_cvt_f32_ubyte for signed casts too
authorGeorg Lehmann <dadschoorse@gmail.com>
Fri, 25 Aug 2023 17:23:14 +0000 (19:23 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 1 Sep 2023 17:21:57 +0000 (17:21 +0000)
commitcda5784eb3dc890138229604ab68fa319626cc73
treeb9c291447f3d5f1bb403057f503a72b2a11efa36
parent144c2d4e4a9f0dc492bfed6fc24bb22fb057a806
aco: use v_cvt_f32_ubyte for signed casts too

The extract is always positive, so signed vs unsigned conversion doesn't matter.

Foz-DB GFX11:
Totals from 167 (0.13% of 133461) affected shaders:
Instrs: 401631 -> 401225 (-0.10%)
CodeSize: 2107256 -> 2104344 (-0.14%)
VGPRs: 13320 -> 13332 (+0.09%)
Latency: 6468063 -> 6467241 (-0.01%)
InvThroughput: 801854 -> 801653 (-0.03%)
Copies: 13926 -> 13927 (+0.01%); split: -0.08%, +0.09%

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24893>
src/amd/compiler/aco_optimizer.cpp