mojoshader.c
changeset 1179 6dd73a80629b
parent 1178 03f0ef912406
child 1180 8abc040525ed
equal deleted inserted replaced
1178:03f0ef912406 1179:6dd73a80629b
   525     } // while
   525     } // while
   526 } // free_reglist
   526 } // free_reglist
   527 
   527 
   528 static inline uint32 reg_to_ui32(const RegisterType regtype, const int regnum)
   528 static inline uint32 reg_to_ui32(const RegisterType regtype, const int regnum)
   529 {
   529 {
   530     return ( ((uint32) regtype) | (((uint32) regnum) << 16) );
   530     return ( ((uint32) regnum) | (((uint32) regtype) << 16) );
   531 } // reg_to_uint32
   531 } // reg_to_uint32
   532 
   532 
   533 // !!! FIXME: ditch this for a hash table.
   533 // !!! FIXME: ditch this for a hash table.
   534 static RegisterList *reglist_insert(Context *ctx, RegisterList *prev,
   534 static RegisterList *reglist_insert(Context *ctx, RegisterList *prev,
   535                                     const RegisterType regtype,
   535                                     const RegisterType regtype,