Commit 81380868 authored by Thomas Andersen's avatar Thomas Andersen Committed by Marge Bot
Browse files

pvr: fix overlapping comparison



The comparison here will always be true. This changes it so
height is only set if the type is not a 1D.

Fixes a warning with clang

Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: Frank Binns's avatarFrank Binns <frank.binns@imgtec.com>
Part-of: <mesa/mesa!15514>
parent df059c67
Pipeline #539153 waiting for manual action with stages
......@@ -127,7 +127,7 @@ pvr_pack_tex_state(struct pvr_device *device,
}
word0.width = info->extent.width - 1;
if (info->type != VK_IMAGE_VIEW_TYPE_1D ||
if (info->type != VK_IMAGE_VIEW_TYPE_1D &&
info->type != VK_IMAGE_VIEW_TYPE_1D_ARRAY)
word0.height = info->extent.height - 1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment