[PATCH 5.15 464/691] drm/amd/display: Fix index out of bounds in degamma hardware format translation