projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dda4823
)
ilo: fix padding of linear sampler views
author
Chia-I Wu
<olvaffe@gmail.com>
Fri, 6 Mar 2015 07:10:45 +0000
(15:10 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Fri, 6 Mar 2015 17:38:35 +0000
(
01:38
+0800)
Should use the temporary variable in the loop instead of layout->bo_height.
src/gallium/drivers/ilo/ilo_layout.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_layout.c
b/src/gallium/drivers/ilo/ilo_layout.c
index a99e445780edb041b1f3986de99cb297e956dc5a..2c78dc61cb8f3fa5e2a54916db5c79b5068b615e 100644
(file)
--- a/
src/gallium/drivers/ilo/ilo_layout.c
+++ b/
src/gallium/drivers/ilo/ilo_layout.c
@@
-908,10
+908,8
@@
layout_calculate_bo_size(struct ilo_layout *layout,
*/
if (ilo_dev_gen(params->dev) >= ILO_GEN(7.5) &&
(params->templ->bind & PIPE_BIND_SAMPLER_VIEW) &&
- layout->tiling == GEN6_TILING_NONE) {
- layout->bo_height +=
- (64 + layout->bo_stride - 1) / layout->bo_stride;
- }
+ layout->tiling == GEN6_TILING_NONE)
+ h += (64 + layout->bo_stride - 1) / layout->bo_stride;
/*
* From the Sandy Bridge PRM, volume 4 part 1, page 81: