gpu: Merge in my S4 source with extra tunables