pvr: Transfer PBE source snorm format should be signed

Wrong shader was picked because snorm formats were treated as unsigned.

Signed-off-by: Oskar Rundgren <oskar.rundgren@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22918>
This commit is contained in:
Oskar Rundgren 2023-05-03 17:56:13 +01:00 committed by Marge Bot
parent a495cdb09e
commit 9fccc25bdf

View file

@ -325,7 +325,8 @@ pvr_pbe_src_format_normal(VkFormat src_format,
bool dont_force_pbe,
enum pvr_transfer_pbe_pixel_src *src_format_out)
{
bool dst_signed = vk_format_is_sint(dst_format);
bool dst_signed = vk_format_is_sint(dst_format) ||
vk_format_is_snorm(dst_format);
if (vk_format_is_int(dst_format)) {
uint32_t red_width;