[PATCH OLK-5.10] drm/amd/display: Fix index out of bounds in degamma hardware format translation