u_blitter: use util_is_format_compatible in the assert
This commit is contained in:
@@ -738,7 +738,8 @@ void util_blitter_copy_region(struct blitter_context *blitter,
|
||||
assert(!is_overlap(srcbox->x, srcbox->x + width, srcbox->y, srcbox->y + height,
|
||||
dstx, dstx + width, dsty, dsty + height));
|
||||
} else {
|
||||
assert(dst->format == src->format);
|
||||
assert(util_is_format_compatible(util_format_description(dst->format),
|
||||
util_format_description(src->format)));
|
||||
}
|
||||
assert(src->target < PIPE_MAX_TEXTURE_TYPES);
|
||||
/* XXX should handle 3d regions */
|
||||
|
||||
Reference in New Issue
Block a user