diff --git a/src/gallium/auxiliary/util/u_surface.c b/src/gallium/auxiliary/util/u_surface.c index 974db6be9f1..300dc3a9c2f 100644 --- a/src/gallium/auxiliary/util/u_surface.c +++ b/src/gallium/auxiliary/util/u_surface.c @@ -283,8 +283,8 @@ util_resource_copy_region(struct pipe_context *pipe, /* check that region boxes are not out of bounds */ assert(src_box.x + src_box.width <= (int)u_minify(src->width0, src_level)); assert(src_box.y + src_box.height <= (int)u_minify(src->height0, src_level)); - assert(dst_box.x + dst_box.width <= (int)u_minify(dst->width0, dst_level)); - assert(dst_box.y + dst_box.height <= (int)u_minify(dst->height0, dst_level)); + assert(dst_box.x + dst_box.width <= (int)util_align_npot(u_minify(dst->width0, dst_level), dst_bw)); + assert(dst_box.y + dst_box.height <= (int)util_align_npot(u_minify(dst->height0, dst_level), dst_bh)); /* check that total number of src, dest bytes match */ assert((src_box.width / src_bw) * (src_box.height / src_bh) * src_bs == diff --git a/src/gallium/frontends/lavapipe/ci/lvp-vkd3d-fails.txt b/src/gallium/frontends/lavapipe/ci/lvp-vkd3d-fails.txt index 911a691f412..4748b8e2770 100644 --- a/src/gallium/frontends/lavapipe/ci/lvp-vkd3d-fails.txt +++ b/src/gallium/frontends/lavapipe/ci/lvp-vkd3d-fails.txt @@ -1,5 +1,3 @@ -# src/gallium/auxiliary/util/u_surface.c:285: util_resource_copy_region: Assertion `dst_box.x + dst_box.width <= (int)u_minify(dst->width0, dst_level)' failed. -test_copy_texture_bc_rgba,Crash # src/gallium/frontends/lavapipe/lvp_private.h:773: lvp_image_aspects_to_plane: Assertion `!(aspectMask & ~image->vk.aspects)' failed. test_get_resource_tiling,Crash