diff options
author | Brian <[email protected]> | 2007-09-27 16:33:01 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-09-27 16:33:01 -0600 |
commit | 7966e479dca22bf2d2b844d50ac5bef70614e15a (patch) | |
tree | 9e8674230a3e584c674d0683de5d40321bd51fc1 | |
parent | 28b315dc1aed36bebadfacbd55e481e7baacfcb5 (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.
-rw-r--r-- | src/mesa/state_tracker/st_mipmap_tree.c | 1 |
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) { |