panfrost/midgard: Implement upscaling type converts
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 1 Jul 2019 23:44:00 +0000 (16:44 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 10 Jul 2019 13:12:04 +0000 (06:12 -0700)
commit7f807ef1fa9ff90a1bfb0f16f483d8649e2faf50
tree7a9c26ca5f94cc43c5fbcef248b2116e19a638e2
parent541b329bd1bcb157dd239b132f49f73ef173132d
panfrost/midgard: Implement upscaling type converts

Rather than using a dest_override, we upscale integers by using a half
field with a sign-extend bit. A variant of this trick should also work
for floats, but one step at a time!

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/midgard/midgard_compile.c