pan/bi: Special-case load_input for blend shaders
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 14 Oct 2020 12:11:52 +0000 (14:11 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 15 Oct 2020 06:05:23 +0000 (08:05 +0200)
commit685d45ff938f004aebffb06e8766ee9027030167
tree803f85ee088c97441098b5094a39edc1505dee6d
parent0d40460757b809c8c28ee78f79e87a01e79bc518
pan/bi: Special-case load_input for blend shaders

Blend shaders are passed blend inputs through r0-r3. Let's emit a MOV
from those register when we see a load_input intrinsic.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7151>
src/panfrost/bifrost/bifrost_compile.c