Also make prefix consistent, so it starts with either TEX_NUM or TEX_START, followed by texture type and architecture.
Compile time per kernel increased alot after recent image commits, re-shuffle some code to fix this. Patch by "LazyDodo". Differential Revision: https://developer.blender.org/D2012