projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66f55de
)
gallium: properly check for src->dst blit compatibilities
author
Jerome Glisse
<jglisse@redhat.com>
Wed, 15 Dec 2010 20:27:16 +0000
(15:27 -0500)
committer
Jerome Glisse
<jglisse@redhat.com>
Wed, 15 Dec 2010 20:29:31 +0000
(15:29 -0500)
Spotted by Christoph Bumiller & Jose Fonseca
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
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 4c986e3565cd66d47879ceb7ee4b6c24041604a6..545021d2642bb319bbe2e8d6c127997bd1f9aed1 100644
(file)
--- a/
src/gallium/auxiliary/util/u_blitter.c
+++ b/
src/gallium/auxiliary/util/u_blitter.c
@@
-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 */