freedreno/ir3: add helper to create immed of specified size
authorRob Clark <robdclark@gmail.com>
Sat, 31 Mar 2018 18:14:31 +0000 (14:14 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 31 Mar 2018 19:13:11 +0000 (15:13 -0400)
commite04e068f75e82238a8964a6210cd40711805a458
tree01627fec950cc876a18247c09e45bd2ef6e3eaaa
parent1f45320e5105e58d574d64b510ff165f6cda0751
freedreno/ir3: add helper to create immed of specified size

We'll also need to be able to create a half-precision immediate.  So
re-work create_immed().  Prep work for following patch.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c