nir/lower_io: Add an option to lower 64-bit varyings

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Jason Ekstrand
2019-07-19 17:10:07 -05:00
parent a63e82deb5
commit 078dcb7ccd
2 changed files with 118 additions and 15 deletions

View File

@@ -3445,6 +3445,12 @@ void nir_assign_io_var_locations(struct exec_list *var_list,
gl_shader_stage stage);
typedef enum {
/* If set, this causes all 64-bit IO operations to be lowered on-the-fly
* to 32-bit operations. This is only valid for nir_var_shader_in/out
* modes.
*/
nir_lower_io_lower_64bit_to_32 = (1 << 0),
/* If set, this forces all non-flat fragment shader inputs to be
* interpolated as if with the "sample" qualifier. This requires
* nir_shader_compiler_options::use_interpolated_input_intrinsics.