aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-03-06 15:10:45 +0800
committerChia-I Wu <[email protected]>2015-03-07 01:38:35 +0800
commit35b713ad75c9d6be4ad357244b59b39d80dcc77f (patch)
treef8a6035c979655bf1b93b74e0f80fc49bac8151e /src/gallium
parentdda482384446dae9b48077a2e1bd51b3c1fce8fc (diff)
ilo: fix padding of linear sampler views
Should use the temporary variable in the loop instead of layout->bo_height.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/ilo/ilo_layout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/ilo/ilo_layout.c b/src/gallium/drivers/ilo/ilo_layout.c
index a99e445780e..2c78dc61cb8 100644
--- 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: