freedreno/ir3: add is_tex_or_prefetch()
authorRob Clark <robdclark@chromium.org>
Sat, 18 Jan 2020 19:03:38 +0000 (11:03 -0800)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Feb 2020 02:40:22 +0000 (02:40 +0000)
commitad2587d3c8885ce4aa0403269268a1c0ab8c2cac
treedc95945974ec6cbdd69d49e43d610311f0d3c696
parent4a7a6c9ef0eb6b26d8410591353142207689d085
freedreno/ir3: add is_tex_or_prefetch()

Some of the aspects of tex prefetch are in common with normal tex
instructions, such as having a wrmask to control which components
are written.  Add a helper for this.

This should result in actually using the prefetch wrmask to avoid
fetching unneeded components.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3569>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_depth.c
src/freedreno/ir3/ir3_legalize.c