iris: verify color component width in convert_fast_clear_color
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Thu, 30 Jul 2020 12:40:21 +0000 (14:40 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 15:08:01 +0000 (15:08 +0000)
commit5e676ac67171b93b0bd6be5d5b801087f305b2d5
treef5877ddb35aecb8caa0938e259d18133499ce5a7
parent0685815ea629d94532d3d8b7214c26d727e0280a
iris: verify color component width in convert_fast_clear_color

Coverity complains about possible 2^32-1 bit shift.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6126>
src/gallium/drivers/iris/iris_clear.c