Use sysctl to get IOSurface bytes per row alignment, instead of brokering the value from the UI process.
Created attachment 453131 [details] Patch
Created attachment 453132 [details] Patch
Created attachment 453133 [details] Patch