OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d2b0eb
)
llvmpipe: keep texture stride 16byte aligned
author
Keith Whitwell
<keithw@vmware.com>
Sun, 23 Aug 2009 11:07:36 +0000
(12:07 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sat, 29 Aug 2009 08:21:41 +0000
(09:21 +0100)
Fixes crash when resizing gears window.
src/gallium/drivers/llvmpipe/lp_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_texture.c
b/src/gallium/drivers/llvmpipe/lp_texture.c
index
18c2362
..
169fe87
100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/
src/gallium/drivers/llvmpipe/lp_texture.c
@@
-76,7
+76,7
@@
llvmpipe_texture_layout(struct pipe_screen *screen,
pt->depth[level] = depth;
pt->nblocksx[level] = pf_get_nblocksx(&pt->block, width);
pt->nblocksy[level] = pf_get_nblocksy(&pt->block, height);
- lpt->stride[level] =
pt->nblocksx[level]*pt->block.size
;
+ lpt->stride[level] =
align(pt->nblocksx[level]*pt->block.size, 16)
;
lpt->level_offset[level] = buffer_size;