projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf014d0
)
progs/perf: reset row_length after subimage test
author
Keith Whitwell
<keithw@vmware.com>
Tue, 22 Sep 2009 10:58:09 +0000
(11:58 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Tue, 22 Sep 2009 10:58:09 +0000
(11:58 +0100)
Also test fewer sizes in teximage generally.
progs/perf/teximage.c
patch
|
blob
|
history
diff --git
a/progs/perf/teximage.c
b/progs/perf/teximage.c
index
86f0ef8
..
9e032ad
100644
(file)
--- a/
progs/perf/teximage.c
+++ b/
progs/perf/teximage.c
@@
-131,6
+131,8
@@
UploadTexSubImage2D(unsigned count)
glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
glPixelStorei(GL_UNPACK_SKIP_PIXELS, 0);
glPixelStorei(GL_UNPACK_SKIP_ROWS, 0);
+ glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
+
}
else {
/* replace whole texture image at once */
@@
-180,7
+182,7
@@
PerfDraw(void)
for (subImage = 0; subImage < 2; subImage++) {
/* loop over texture sizes */
- for (TexSize = 16; TexSize <= maxSize; TexSize *=
2
) {
+ for (TexSize = 16; TexSize <= maxSize; TexSize *=
4
) {
GLint bytesPerImage;
double mbPerSec;