added PRIM_ALPHA_MODE and PRIM_ALPHA_MODE_MASK