Reland "[graphite] Fix clamping bug on Intel UHD 630."

* Issue: Swizzle chars were passed as a ref to const char*, causing entire sections of the chars to be written to the stream.

Bug: b/421404949
Original change's description:
> Revert "[graphite] Fix clamping bug on Intel UHD 630."
>
> This reverts commit e3ca7bd16189b88e8bd71b7d2ee285c77945462f.
>
> Reason for revert: breaks texel_subset_linear_mipmap_linear_down gm
>
> Bug: b/421404949
> Original change's description:
> > [graphite] Fix clamping bug on Intel UHD 630.
> >
> > * Issue appears to be incorrect per component clamp/min/max function on f16/f32.
> >
> > * This CL changes the metal shader generation to generate scalar clamp/min/max for each compoenent.
> >
> > Bug: b/421404949
> > Change-Id: Idf2a4445e922e387ba94c35498807980b3392ad0
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1001916
> > Reviewed-by: Michael Ludwig <michaelludwig@google.com>
> > Commit-Queue: Thomas Smith <thomsmit@google.com>
>
> Bug: b/421404949
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Change-Id: I2be5ff898bc5fb6a49936e3907c7f0e3d9b6f87a
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1003577
> Commit-Queue: Michael Ludwig <michaelludwig@google.com>
> Reviewed-by: Michael Ludwig <michaelludwig@google.com>

Bug: b/421404949
Change-Id: I55064678e78aea7c3674deb893050b26d67830fd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1004176
Commit-Queue: Thomas Smith <thomsmit@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
8 files changed