panfrost: Derive texture/sampler_count from shader