aco: fix p_insert lowering with 16bit sources
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 1 Sep 2021 13:22:12 +0000 (15:22 +0200)
committerDaniel Schürmann <daniel@schuermann.dev>
Thu, 2 Sep 2021 18:39:17 +0000 (20:39 +0200)
commitcc4682ed471d8fc0e10f3480183310901aa165a6
treeb2ac3d1447e07a93656f75dd22690319e2912d97
parentcc62fbed6d83fa10dc2f30f758d8f34bd4f72593
aco: fix p_insert lowering with 16bit sources

The previous lowering only wrote a single byte.

Fixes: 2f94353735b5ddfe2a72499e7bf6c7bbc80b9a00 ('aco: add p_extract/p_insert')
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12640>
src/amd/compiler/aco_lower_to_hw_instr.cpp
src/amd/compiler/tests/test_to_hw_instr.cpp