diff --git a/src/panfrost/compiler/pan_compiler.h b/src/panfrost/compiler/pan_compiler.h index 0bf4f09accb..98fb734cfaf 100644 --- a/src/panfrost/compiler/pan_compiler.h +++ b/src/panfrost/compiler/pan_compiler.h @@ -167,6 +167,13 @@ struct pan_shader_varying { enum pipe_format format; }; +static inline unsigned +pan_get_fixed_varying_mask(unsigned varyings_used) +{ + return (varyings_used & BITFIELD_MASK(VARYING_SLOT_VAR0)) & + ~VARYING_BIT_POS & ~VARYING_BIT_PSIZ; +} + struct bifrost_shader_blend_info { nir_alu_type type; uint32_t return_offset; @@ -360,6 +367,10 @@ struct pan_shader_info { }; }; +void pan_shader_compile(nir_shader *nir, struct pan_compile_inputs *inputs, + struct util_dynarray *binary, + struct pan_shader_info *info); + uint16_t pan_to_bytemask(unsigned bytes, unsigned mask); /* NIR passes to do some backend-specific lowering */ diff --git a/src/panfrost/lib/pan_shader.h b/src/panfrost/lib/pan_shader.h index 54eb6147280..020733eab9b 100644 --- a/src/panfrost/lib/pan_shader.h +++ b/src/panfrost/lib/pan_shader.h @@ -30,17 +30,6 @@ #include "panfrost/lib/pan_props.h" #include "panfrost/compiler/pan_compiler.h" -static unsigned -pan_get_fixed_varying_mask(unsigned varyings_used) -{ - return (varyings_used & BITFIELD_MASK(VARYING_SLOT_VAR0)) & - ~VARYING_BIT_POS & ~VARYING_BIT_PSIZ; -} - -void pan_shader_compile(nir_shader *nir, struct pan_compile_inputs *inputs, - struct util_dynarray *binary, - struct pan_shader_info *info); - #ifdef PAN_ARCH #if PAN_ARCH >= 9