diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-05-18 20:36:00 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-05-19 17:41:21 +0000 |
commit | 3645c781ab16c3e425916ff29745e3138197d8ab (patch) | |
tree | 0c4284ac6836115b05db42fad6f8915f25ce351e /src/gallium/drivers/panfrost/include/panfrost-job.h | |
parent | 50382df728e485967c450d918146ec87cf2e8d02 (diff) |
panfrost: Hoist blend constant into Midgard-specific struct
This eliminates one major source of #ifdef parity between Midgard and
Bifrost, better representing how the struct acts on Midgard and allowing
proper decodes on Bifrost.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Ryan Houdek <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/include/panfrost-job.h')
-rw-r--r-- | src/gallium/drivers/panfrost/include/panfrost-job.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gallium/drivers/panfrost/include/panfrost-job.h b/src/gallium/drivers/panfrost/include/panfrost-job.h index 96c2d07ef4d..fb4a12fe156 100644 --- a/src/gallium/drivers/panfrost/include/panfrost-job.h +++ b/src/gallium/drivers/panfrost/include/panfrost-job.h @@ -228,12 +228,6 @@ struct mali_blend_equation { /* Corresponds to MALI_MASK_* above and glColorMask arguments */ unsigned color_mask : 4; - - /* Attached constant for CONSTANT_ALPHA, etc */ - -#ifndef BIFROST - float constant; -#endif } __attribute__((packed)); /* Used with channel swizzling */ @@ -420,7 +414,11 @@ enum mali_format { union midgard_blend { mali_ptr shader; - struct mali_blend_equation equation; + + struct { + struct mali_blend_equation equation; + float constant; + }; }; /* On MRT Midgard systems (using an MFBD), each render target gets its own |