glsl: make packed varying helper needs_lowering() external

We will use this helper to correctly calculate xfb offsets in the
following patch.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18175>
This commit is contained in:
Timothy Arceri
2022-08-22 11:08:32 +10:00
committed by Marge Bot
parent ff7c59672f
commit 04e7ed8323
2 changed files with 24 additions and 9 deletions

View File

@@ -113,6 +113,11 @@ void gl_nir_link_assign_xfb_resources(const struct gl_constants *consts,
bool gl_nir_link_uniform_blocks(struct gl_shader_program *prog);
bool lower_packed_varying_needs_lowering(nir_shader *shader, nir_variable *var,
bool xfb_enabled,
bool disable_xfb_packing,
bool disable_varying_packing);
#ifdef __cplusplus
} /* extern "C" */
#endif