freedreno/ir3: fixup register footprint to account for prefetch
authorRob Clark <robdclark@chromium.org>
Fri, 11 Oct 2019 23:15:44 +0000 (16:15 -0700)
committerRob Clark <robdclark@gmail.com>
Fri, 18 Oct 2019 21:11:54 +0000 (21:11 +0000)
commit392a309a55cd81055b2994891c7f1d2d1adbdcba
tree2eb642c49236e9acfee123ec2064acb62fc25d4b
parent482e1b99558fdfa9fe23999400a2973acb3728a1
freedreno/ir3: fixup register footprint to account for prefetch

It is possible that the result of a pre-fs texture fetch is an output
(or partially an output) of the FS.  Sine the meta:tex_prefetch
instructions are dropped before the assembler, we need to account for
this when we fixup the register footprint.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/ir3/ir3_shader.c