summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-09-27 16:33:01 -0600
committerBrian <[email protected]>2007-09-27 16:33:01 -0600
commit7966e479dca22bf2d2b844d50ac5bef70614e15a (patch)
tree9e8674230a3e584c674d0683de5d40321bd51fc1 /src/mesa/state_tracker
parent28b315dc1aed36bebadfacbd55e481e7baacfcb5 (diff)
set miptree pitch to region pitch after allocating the region in st_miptree_create()
This fixes rendering with small (4x4) textures with softpipe. Haven't yet tested with i915.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_mipmap_tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_mipmap_tree.c b/src/mesa/state_tracker/st_mipmap_tree.c
index 27bbf176087..faca148d805 100644
--- a/src/mesa/state_tracker/st_mipmap_tree.c
+++ b/src/mesa/state_tracker/st_mipmap_tree.c
@@ -89,6 +89,7 @@ st_miptree_create(struct pipe_context *pipe,
/* note: it's OK to pass 'pitch' as 'width' here: */
mt->region = pipe->region_alloc(pipe, mt->cpp, mt->pitch,
mt->total_height, flags);
+ mt->pitch = mt->region->pitch; /*XXX NEW */
}
if (!mt->region) {