projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0b2b8d
)
u_blitter: use util_is_format_compatible in the assert
author
Marek Olšák
<maraeo@gmail.com>
Tue, 7 Dec 2010 05:22:38 +0000
(06:22 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Tue, 7 Dec 2010 05:22:38 +0000
(06:22 +0100)
src/gallium/auxiliary/util/u_blitter.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_blitter.c
b/src/gallium/auxiliary/util/u_blitter.c
index eeed87ec6340e8746c66a568a74abe7624ca051b..4c986e3565cd66d47879ceb7ee4b6c24041604a6 100644
(file)
--- 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 */