Commit a10abbd8 authored by Thomas Andersen's avatar Thomas Andersen
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
parent ce84b1c3
Pipeline #538744 waiting for manual action with stages
in 11 seconds
......@@ -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