panfrost: Use panfrost_blendable_formats for blending
Finally the yak shaving pays off. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Tested-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7352>
This commit is contained in:
parent
41f06ac877
commit
e1624b67dc
|
@ -35,22 +35,7 @@
|
|||
bool
|
||||
panfrost_can_fixed_blend(enum pipe_format format)
|
||||
{
|
||||
/* Fixed-function can handle sRGB */
|
||||
format = util_format_linear(format);
|
||||
|
||||
switch (panfrost_pipe_format_table[format].hw) {
|
||||
case MALI_RGB565:
|
||||
case MALI_RGB5_A1_UNORM:
|
||||
case MALI_RGB10_A2_UNORM:
|
||||
case MALI_RGBA4_UNORM:
|
||||
case MALI_R8_UNORM:
|
||||
case MALI_RG8_UNORM:
|
||||
case MALI_RGB8_UNORM:
|
||||
case MALI_RGBA8_UNORM:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return panfrost_blend_format(format).internal != 0;
|
||||
}
|
||||
|
||||
/* Helper to find the uncomplemented Gallium blend factor corresponding to a
|
||||
|
|
Loading…
Reference in New Issue