projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dacf9ef
)
nv30: align transfer stride to 64, required by blit, sifm transfer impls
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Tue, 30 Jun 2015 01:58:54 +0000
(21:58 -0400)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Tue, 30 Jun 2015 03:03:27 +0000
(23:03 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv30/nv30_miptree.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
b/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
index 1a4b8929c0f78977029dd7387be1a026e1f74e05..846dcebc3a57f702d4d131009895a295680a8b04 100644
(file)
--- a/
src/gallium/drivers/nouveau/nv30/nv30_miptree.c
+++ b/
src/gallium/drivers/nouveau/nv30/nv30_miptree.c
@@
-242,8
+242,8
@@
nv30_miptree_transfer_map(struct pipe_context *pipe, struct pipe_resource *pt,
tx->base.level = level;
tx->base.usage = usage;
tx->base.box = *box;
- tx->base.stride = util_format_get_nblocksx(pt->format, box->width) *
-
util_format_get_blocksize(pt->format
);
+ tx->base.stride =
align(
util_format_get_nblocksx(pt->format, box->width) *
+
util_format_get_blocksize(pt->format), 64
);
tx->base.layer_stride = util_format_get_nblocksy(pt->format, box->height) *
tx->base.stride;