panfrost: Refactor texture/sampler upload