summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-07 06:22:38 +0100
committerMarek Olšák <[email protected]>2010-12-07 06:22:38 +0100
commit857d107bfe1d8c98e614f93da06588639576d3fe (patch)
treea7140f92887f2bcff4822ecbd2e760aebe04567d /src
parentd0b2b8da7d363f6b79fcab7bfe6e81d1d436944e (diff)
u_blitter: use util_is_format_compatible in the assert
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index eeed87ec634..4c986e3565c 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -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 */