projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53069cb
)
nouveau: stop with 0 dimension
author
Patrice Mandin
<patmandin@gmail.com>
Tue, 10 Feb 2009 21:04:56 +0000
(22:04 +0100)
committer
Patrice Mandin
<patmandin@gmail.com>
Tue, 10 Feb 2009 21:04:56 +0000
(22:04 +0100)
src/gallium/drivers/nv04/nv04_surface_2d.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv04/nv04_surface_2d.c
b/src/gallium/drivers/nv04/nv04_surface_2d.c
index d220c21c49d9dec94fd7fe761a03fc693968da71..ffb17ea4cacb4d6ef6d0379d708d45d8c939fdb7 100644
(file)
--- a/
src/gallium/drivers/nv04/nv04_surface_2d.c
+++ b/
src/gallium/drivers/nv04/nv04_surface_2d.c
@@
-130,7
+130,7
@@
nv04_surface_copy_swizzle(struct nv04_surface_2d *ctx,
/* FIXME: Find right src and dst offset, given mipmap level */
level_w = w;
level_h = h;
- for (i=0; i<src->level; i++) {
+ for (i=0; i<src->level
&& level_w && level_h
; i++) {
dst_offset += level_w * level_h * dst->block.size;
level_w >>= 1;
level_h >>= 1;