aco: use VOP2 for v_cvt_pkrtz_f16_f32 if possible
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 21 Sep 2020 17:35:52 +0000 (18:35 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Oct 2020 15:31:38 +0000 (15:31 +0000)
commitf29c81f863c9879a6a87724cbdae1e1818f3f6b4
treeba1add8741feef5b956d05065bf1aacd4848bb99
parent7240edec2a6554d2cf8f49324d7415bbdb68a97c
aco: use VOP2 for v_cvt_pkrtz_f16_f32 if possible

This patch also does a slight rework of export_fs_mrt_color()
to avoid setting of enabled channels which are not used.

Totals from 52404 (38.38% of 136546) affected shaders (NAVI):
SGPRs: 3097443 -> 3097435 (-0.00%)
CodeSize: 189151600 -> 188546200 (-0.32%)
Instrs: 36445061 -> 36445104 (+0.00%); split: -0.00%, +0.00%
Cycles: 1739388020 -> 1739388192 (+0.00%); split: -0.00%, +0.00%
VMEM: 21071501 -> 21071665 (+0.00%); split: +0.00%, -0.00%
SMEM: 3470983 -> 3470982 (-0.00%); split: +0.00%, -0.00%
PreSGPRs: 2058965 -> 2058962 (-0.00%)
PreVGPRs: 1860294 -> 1860295 (+0.00%)

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