mesa: Split the shader texture update logic from fixed function.