panfrost/midgard: Use generic outmod type
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Jul 2019 15:41:13 +0000 (08:41 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Jul 2019 23:23:52 +0000 (16:23 -0700)
It could be midgard_outmod_float or midgard_outmod_int; don't assume
it's one or the other. Fixes -Wenum-conversion warnings.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard.h

index 5953214c5991ecdd21d501181fda77cc49d46b17..311f3bc043ad8ab342537ae9a6ebe7efde60ff68 100644 (file)
@@ -248,7 +248,7 @@ __attribute__((__packed__))
         unsigned src1 : 13;
         unsigned src2 : 13;
         midgard_dest_override dest_override : 2;
-        midgard_outmod_float outmod               : 2;
+        unsigned outmod               : 2;
         unsigned mask                           : 8;
 }
 midgard_vector_alu;