From: Marek Olšák Date: Fri, 14 Aug 2020 23:13:52 +0000 (-0400) Subject: nir: add shader_info::io_lowered X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d36dceeabcc59155f2fa4acaf171ce2f3d4418c;p=mesa.git nir: add shader_info::io_lowered This will drive decisions in many NIR passes and st/mesa. Reviewed-by: Eric Anholt Part-of: --- diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 8c632de5387..844815d39c1 100644 --- a/src/compiler/shader_info.h +++ b/src/compiler/shader_info.h @@ -193,6 +193,11 @@ typedef struct shader_info { /* Whether flrp has been lowered. */ bool flrp_lowered:1; + /* Whether nir_lower_io has been called to lower derefs. + * nir_variables for inputs and outputs might not be present in the IR. + */ + bool io_lowered:1; + /* Whether the shader writes memory, including transform feedback. */ bool writes_memory:1;