Another day, another Bifrost patch, except this one also applies to Midgard.
MALI_WRAP_MODE_CLAMP doesn't work fully on either GPU generation, so use other wrap modes instead in some cases.
With nearest filtering, Midgard only clamps to the edge for two of the edges, and uses the border colour for the other two. Using the clamp mode on Bifrost causes broken rendering and/or GPU faults.
Fixes piglit test "texwrap" on both Midgard and Bifrost, and fixes Chromium B.S.U. rendering on Bifrost.