NVIDIA’s raw memory for RAW12 uses 14-bits. The raw image modes either replicate MSBs (for T_R16 16-bit bpp widths) or truncate LSBs (for T_L8 8-bit bpp widths), as needed to fit pixels into the appropriate format.
See this thread for details:
So for RAW12 you get bits 15 and 14 zero’d and bits 1 and 0 are replications of the two MSBits (D11 and D10).