[PATCH 2/6] wined3d: Introduce wined3d_mask_from_size().