Skip to content
Snippets Groups Projects
Commit 34ffa4cd authored by Boris Brezillon's avatar Boris Brezillon
Browse files

nir/lower_blend: Fix nir_blend_logicop() for 8/16-bit integer formats


src and dst can be integer types, and doing an f2f on such types
messes up with the original value. Make sure we keep the original type
when {up,down}sizing the src, dst and out values.

Fixes: f3de2bd6 ("nir: Add blend lowering pass")
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: default avatarAlyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <mesa/mesa!28839>
parent e5f133cc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment