projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
panfrost/midgard: Drop dependence on mesa/st
[mesa.git]
/
src
/
gallium
/
drivers
/
panfrost
/
pan_blending.c
diff --git
a/src/gallium/drivers/panfrost/pan_blending.c
b/src/gallium/drivers/panfrost/pan_blending.c
index 058fb6bda84ff0d84bef9ac3b7bc8ce2c0b49e87..cecdd780ce11156f9b28c3d2c3cdccd6f7a90d3f 100644
(file)
--- 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
* 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 };
{
/* 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! */
/* We have the constant -- success! */
-
*out = constant
;
+
memcpy(out, &constant, sizeof(float))
;
return true;
}
return true;
}