shaders/film_grain_av1: support >12-bit input samples
AV1 only allows up to 12-bit depth out of the box, but we want to handle
the case of already up-converted input files. This should fix triggering
a pl_assert
on input files with a bit depth above 12, by constraining
the logical bit depth.
Supersedes: !331 (closed)