panfrost: Fix fixed-function blend on bifrost
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 9 Oct 2020 12:00:28 +0000 (14:00 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 15 Oct 2020 06:05:23 +0000 (08:05 +0200)
commitd8326ceafbd8903b69e211ec6449ecdb83efc761
treeb69b51b1fb31bb9026cf92d621392630238a8ad3
parent442f48f27b666cd2183d4ce27977da045ee34b0f
panfrost: Fix fixed-function blend on bifrost

The conversion from a 32b float to a 16b fixed-point number was wrong.

Fixes: 8389976b7c09 ("panfrost: XML-ify the blend descriptors")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7151>
src/gallium/drivers/panfrost/pan_cmdstream.c