Make texel conversion ignore unused channels
authorJari Komppa <jari.komppa@siru.fi>
Fri, 26 Nov 2021 11:25:55 +0000 (13:25 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 6 Jan 2022 22:46:36 +0000 (22:46 +0000)
commit52fe51b0cde358810ac64d3d7bc6c8cd1878ca97
tree3ec26052f86b0d75c67586db72b708b56d6de093
parent6da509fb6d9094152ac9f6a35f38af280db75b7c
Make texel conversion ignore unused channels

The convertNormalizedUnsignedFixedPoint function applied conversion to
all channels, even those with 0 bit width, causing a bunch of division
by zeros. The change skips all non-used channels.

Affects:
KHR-GLES3.copy_tex_image_conversions.*

Components: OpenGL
VK-GL-CTS issue: 3354

Change-Id: I88bf9748bd7226c8c41ea44a1df9fabf0f648cfa
external/openglcts/modules/gles3/es3cCopyTexImageConversionsTests.cpp