projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6501664
)
util: Modified u_rect to default to memcpy.
author
James Benton
<jbenton@vmware.com>
Wed, 11 Jul 2012 14:31:21 +0000
(15:31 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 27 Nov 2012 16:24:42 +0000
(16:24 +0000)
Previously this function would assert if the format didn't fit an expected 4 channel format size.
Now will work with any format type with any amount of channels.
Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_rect.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_rect.c
b/src/gallium/auxiliary/util/u_rect.c
index 59bebbcb7aaec4dad3290fd7a09d1c03b4e175fe..d00568f1f3eee4a76aa1cfaeaf27829c0837e45d 100644
(file)
--- a/
src/gallium/auxiliary/util/u_rect.c
+++ b/
src/gallium/auxiliary/util/u_rect.c
@@
-144,11
+144,7
@@
util_fill_rect(ubyte * dst,
dst += dst_stride;
}
break;
- case 8:
- case 12:
- case 16:
- case 24:
- case 32:
+ default:
for (i = 0; i < height; i++) {
ubyte *row = dst;
for (j = 0; j < width; j++) {
@@
-158,8
+154,5
@@
util_fill_rect(ubyte * dst,
dst += dst_stride;
}
break;
- default:
- assert(0);
- break;
}
}