From f3ed9f5523ed62c83a557cddabfd3cea98e74fda Mon Sep 17 00:00:00 2001
From: Paul Wilkins <paulwilkins@google.com>
Date: Thu, 18 Jul 2013 16:41:44 +0100
Subject: [PATCH] Alignment of THR_MODES to vp9_mode_order[]

Change-Id: I4032dd0442043543954dcb3724df974b7cc7e515
---
 vp9/encoder/vp9_onyx_int.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/vp9/encoder/vp9_onyx_int.h b/vp9/encoder/vp9_onyx_int.h
index 19b1e3af54..cb87480276 100644
--- a/vp9/encoder/vp9_onyx_int.h
+++ b/vp9/encoder/vp9_onyx_int.h
@@ -141,13 +141,15 @@ typedef struct {
   MBGRAPH_MB_STATS *mb_stats;
 } MBGRAPH_FRAME_STATS;
 
+// This enumerator type needs to be kept aligned with the mode order in
+// const MODE_DEFINITION vp9_mode_order[MAX_MODES] used in the rd code.
 typedef enum {
-  THR_ZEROMV,
-  THR_DC,
-
   THR_NEARESTMV,
   THR_NEARMV,
 
+  THR_ZEROMV,
+  THR_DC,
+
   THR_ZEROG,
   THR_NEARESTG,
 
-- 
GitLab