diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-11-21 08:43:53 -0500 |
---|---|---|
committer | Tomeu Vizoso <[email protected]> | 2019-11-22 05:07:19 +0000 |
commit | d32d4acf681ba685e770f409b81d34b4ec9f8a62 (patch) | |
tree | 58b0980573bc29882fc588a37b589a63e445bee1 /src/panfrost/midgard/compiler.h | |
parent | 4e07e7b2326d742a9832d16ca03aa0e806bd8bff (diff) |
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 <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r-- | src/panfrost/midgard/compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h index 7a203da902a..f2fc5d36146 100644 --- a/src/panfrost/midgard/compiler.h +++ b/src/panfrost/midgard/compiler.h @@ -635,6 +635,8 @@ void emit_binary_bundle( bool nir_undef_to_zero(nir_shader *shader); +void midgard_nir_lod_errata(nir_shader *shader); + /* Optimizations */ bool midgard_opt_copy_prop(compiler_context *ctx, midgard_block *block); |