diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-04-23 19:25:44 -0400 |
---|---|---|
committer | Tomeu Vizoso <[email protected]> | 2020-04-30 16:27:29 +0200 |
commit | 33b13b9fbd2998977f76bfeeacf63900b0ed9cba (patch) | |
tree | 6e4ed0a08563c1fa7d34d704fe9e0f82a091d58c /src | |
parent | 5e9ae4043004e5505f3c7e327d38911330c04dcb (diff) |
panfrost: Enumify bifrost blend types
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Signed-off-by: Tomeu Vizoso <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4724>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/include/panfrost-job.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index 7ab4b4749a8..ae70cb6b656 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -457,6 +457,15 @@ struct midgard_blend_rt { /* On Bifrost systems (all MRT), each render target gets one of these * descriptors */ +enum bifrost_shader_type { + BIFROST_BLEND_F16 = 0, + BIFROST_BLEND_F32 = 1, + BIFROST_BLEND_I32 = 2, + BIFROST_BLEND_U32 = 3, + BIFROST_BLEND_I16 = 4, + BIFROST_BLEND_U16 = 5, +}; + struct bifrost_blend_rt { /* This is likely an analogue of the flags on * midgard_blend_rt */ @@ -499,14 +508,8 @@ struct bifrost_blend_rt { enum mali_format format : 8; /* Type of the shader output variable. Note, this can - * be different from the format. - * - * 0: f16 (mediump float) - * 1: f32 (highp float) - * 2: i32 (highp int) - * 3: u32 (highp uint) - * 4: i16 (mediump int) - * 5: u16 (mediump uint) + * be different from the format. + * enum bifrost_shader_type */ u32 shader_type : 3; u32 zero : 9; |