panfrost: Stop passing a panfrost_device to pan_blend_create_shader()
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Constantine Shablya <constantine.shablya@collabora.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26698>
This commit is contained in:

committed by
Marge Bot

parent
1b79735a63
commit
9c8af69827
@@ -625,8 +625,7 @@ pan_inline_blend_constants(nir_builder *b, nir_intrinsic_instr *intr,
|
||||
}
|
||||
|
||||
static nir_shader *
|
||||
pan_blend_create_shader(const struct panfrost_device *dev,
|
||||
const struct pan_blend_state *state,
|
||||
pan_blend_create_shader(const struct pan_blend_state *state,
|
||||
nir_alu_type src0_type, nir_alu_type src1_type,
|
||||
unsigned rt)
|
||||
{
|
||||
@@ -872,8 +871,7 @@ GENX(pan_blend_get_shader_locked)(const struct panfrost_device *dev,
|
||||
|
||||
memcpy(variant->constants, state->constants, sizeof(variant->constants));
|
||||
|
||||
nir_shader *nir =
|
||||
pan_blend_create_shader(dev, state, src0_type, src1_type, rt);
|
||||
nir_shader *nir = pan_blend_create_shader(state, src0_type, src1_type, rt);
|
||||
|
||||
/* Compile the NIR shader */
|
||||
struct panfrost_compile_inputs inputs = {
|
||||
|
Reference in New Issue
Block a user