mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
ilo: fix padding of linear sampler views
Should use the temporary variable in the loop instead of layout->bo_height.
This commit is contained in:
parent
dda4823844
commit
35b713ad75
1 changed files with 2 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue