Mesa (master): panfrost: Enumify bifrost blend types

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 30 14:43:00 UTC 2020


Module: Mesa
Branch: master
Commit: 33b13b9fbd2998977f76bfeeacf63900b0ed9cba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=33b13b9fbd2998977f76bfeeacf63900b0ed9cba

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Apr 23 19:25:44 2020 -0400

panfrost: Enumify bifrost blend types

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4724>

---

 src/panfrost/include/panfrost-job.h | 19 +++++++++++--------
 1 file 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;



More information about the mesa-commit mailing list