pan/midgard: Add LOD bias/clamp lowering
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 21 Nov 2019 13:43:53 +0000 (08:43 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Fri, 22 Nov 2019 05:07:19 +0000 (05:07 +0000)
commitd32d4acf681ba685e770f409b81d34b4ec9f8a62
tree58b0980573bc29882fc588a37b589a63e445bee1
parent4e07e7b2326d742a9832d16ca03aa0e806bd8bff
pan/midgard: Add LOD bias/clamp lowering

We fetch the info with the new intrinsic and lower with ALU ops for txl
instructions, which seemingly correspond to "TEXGRD" instructions (what
we call textureLod).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/panfrost/Makefile.sources
src/panfrost/midgard/compiler.h
src/panfrost/midgard/meson.build
src/panfrost/midgard/midgard_errata_lod.c [new file with mode: 0644]