mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-15 21:40:45 +02:00
gallium: properly check for src->dst blit compatibilities
Spotted by Christoph Bumiller & Jose Fonseca Signed-off-by: Jerome Glisse <jglisse@redhat.com>
This commit is contained in:
parent
66f55de31e
commit
dbb679e51d
1 changed files with 2 additions and 2 deletions
|
|
@ -738,8 +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(util_is_format_compatible(util_format_description(dst->format),
|
||||
util_format_description(src->format)));
|
||||
assert(util_is_format_compatible(util_format_description(src->format),
|
||||
util_format_description(dst->format)));
|
||||
}
|
||||
assert(src->target < PIPE_MAX_TEXTURE_TYPES);
|
||||
/* XXX should handle 3d regions */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue