diff --git a/src/panfrost/lib/pan_blend.c b/src/panfrost/lib/pan_blend.c index fa82c12f4f6..5d9d705290b 100644 --- a/src/panfrost/lib/pan_blend.c +++ b/src/panfrost/lib/pan_blend.c @@ -616,10 +616,10 @@ pan_inline_blend_constants(nir_builder *b, nir_intrinsic_instr *intr, return true; } -static nir_shader * -pan_blend_create_shader(const struct pan_blend_state *state, - nir_alu_type src0_type, nir_alu_type src1_type, - unsigned rt) +nir_shader * +GENX(pan_blend_create_shader)(const struct pan_blend_state *state, + nir_alu_type src0_type, nir_alu_type src1_type, + unsigned rt) { const struct pan_blend_rt_state *rt_state = &state->rts[rt]; char equation_str[128] = {0}; @@ -853,7 +853,8 @@ GENX(pan_blend_get_shader_locked)(struct pan_blend_shader_cache *cache, memcpy(variant->constants, state->constants, sizeof(variant->constants)); - nir_shader *nir = pan_blend_create_shader(state, src0_type, src1_type, rt); + nir_shader *nir = + GENX(pan_blend_create_shader)(state, src0_type, src1_type, rt); nir_shader_intrinsics_pass(nir, pan_inline_blend_constants, nir_metadata_block_index | nir_metadata_dominance, diff --git a/src/panfrost/lib/pan_blend.h b/src/panfrost/lib/pan_blend.h index 49c9ad65e39..c25b1afd6d6 100644 --- a/src/panfrost/lib/pan_blend.h +++ b/src/panfrost/lib/pan_blend.h @@ -155,6 +155,10 @@ void pan_blend_shader_cache_cleanup(struct pan_blend_shader_cache *cache); #ifdef PAN_ARCH +nir_shader *GENX(pan_blend_create_shader)(const struct pan_blend_state *state, + nir_alu_type src0_type, + nir_alu_type src1_type, unsigned rt); + #if PAN_ARCH >= 6 uint64_t GENX(pan_blend_get_internal_desc)(enum pipe_format fmt, unsigned rt, unsigned force_size, bool dithered);