drisw: move build logic to build systems

Merged Eric Engestrom requested to merge eric/mesa:drisw-shm into master

Merge request reports