Where is the source code used for flatten render texture in UE4?

hi,I want to find the position of flatten code after MRS,MRS will compress the texture and flatten the texture when display ,please help to find the position of flatten code especially in OSVR plugin。