mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 16:50:30 +01:00
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:
parent
a495cdb09e
commit
9fccc25bdf
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue