!UPSTREAM: i965/blorp: Merge into brw_wm_prog.

TODO: disentangle prep work.