st/mesa: simplify drawpixels shader code with tgsi transform helper functions