freedreno/ir3: Fix loading half-float immediate vectors
authorNeil Roberts <nroberts@igalia.com>
Sun, 2 Dec 2018 17:15:52 +0000 (18:15 +0100)
committerRob Clark <robdclark@chromium.org>
Mon, 3 Jun 2019 19:44:03 +0000 (12:44 -0700)
commit8cd1b76b7d9e5190b74653c4f40672c2024839a1
treebb5203bdd789eab98b7f5575f4bba04495afc42f
parent7bbf21e89830588c576264c74e94076ea94eab34
freedreno/ir3: Fix loading half-float immediate vectors

Previously the code to load from a constant instruction was always
using the u32 pointer. If the constant is actually a 16-bit source
this would end up with the wrong values because the pointer would be
offset by the wrong size. This fixes it to use the u16 pointer.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3_compiler_nir.c