commit | d2df0761200ba9680f0d22defaa02c33fb051fcf | [log] [tgz] |
---|---|---|
author | Brian Ho <brian@brkho.com> | Thu May 14 12:17:48 2020 -0700 |
committer | Marge Bot <eric+marge@anholt.net> | Mon Jun 22 14:35:45 2020 +0000 |
tree | b38c6ee4bdb62d7c151cf04c1a6e43894d7ba6ab | |
parent | d2d4677b56efa0003065b61e39c1ef977c83f7da [diff] |
nir: Add an option for lowering TessLevelInner/Outer to vecs The GLSL to NIR compiler supports the LowerTessLevel flag to convert gl_TessLevelInner/Outer from their GLSL declarations as arrays of floats to vec4/vec2s to better match how they are represented in hardware. This commit adds the similar support to the SPIR-V to NIR compiler so turnip can use the same IR3/NIR tess lowering passes as freedreno. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5059>