X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fpanfrost%2Fpan_blending.c;h=cecdd780ce11156f9b28c3d2c3cdccd6f7a90d3f;hb=74b17b9a9ff9515c6bf3e2a4ab5bbbbe9c98ccff;hp=058fb6bda84ff0d84bef9ac3b7bc8ce2c0b49e87;hpb=7da251fc721360fc28b984507959ebfa0c88c8b2;p=mesa.git diff --git a/src/gallium/drivers/panfrost/pan_blending.c b/src/gallium/drivers/panfrost/pan_blending.c index 058fb6bda84..cecdd780ce1 100644 --- a/src/gallium/drivers/panfrost/pan_blending.c +++ b/src/gallium/drivers/panfrost/pan_blending.c @@ -296,7 +296,7 @@ panfrost_make_fixed_blend_part(unsigned func, unsigned src_factor, unsigned dst_ * fixed-function operation breaks down. */ static bool -panfrost_make_constant(unsigned *factors, unsigned num_factors, const struct pipe_blend_color *blend_color, float *out) +panfrost_make_constant(unsigned *factors, unsigned num_factors, const struct pipe_blend_color *blend_color, void *out) { /* Color components used */ bool cc[4] = { false }; @@ -335,7 +335,7 @@ panfrost_make_constant(unsigned *factors, unsigned num_factors, const struct pip /* We have the constant -- success! */ - *out = constant; + memcpy(out, &constant, sizeof(float)); return true; }