projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e60e3a5
)
broadcom/vc5: Fix image_h value for CPU-side tiling on miplevels > 1.
author
Eric Anholt
<eric@anholt.net>
Fri, 29 Dec 2017 00:42:53 +0000
(16:42 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 3 Jan 2018 22:31:36 +0000
(14:31 -0800)
Fixes overflow that caused failure in
dEQP-GLES3.functional.texture.filtering.2d.sizes.128x128_linear.
src/gallium/drivers/vc5/vc5_resource.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc5/vc5_resource.c
b/src/gallium/drivers/vc5/vc5_resource.c
index ddf4d5d377abe6cf9de6eeeeff7a25c0680cdaa1..0e4aaa1924661c27440b537de989de33eb4858e7 100644
(file)
--- a/
src/gallium/drivers/vc5/vc5_resource.c
+++ b/
src/gallium/drivers/vc5/vc5_resource.c
@@
-133,7
+133,8
@@
vc5_resource_transfer_unmap(struct pipe_context *pctx,
slice->stride,
trans->map, ptrans->stride,
slice->tiling, rsc->cpp,
- rsc->base.height0,
+ u_minify(rsc->base.height0,
+ ptrans->level),
&ptrans->box);
}
free(trans->map);