[PATCH] trybot

Chris Wilson chris at chris-wilson.co.uk
Wed Apr 15 23:39:37 UTC 2020


---
 drivers/gpu/drm/i915/gem/i915_gem_tiling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_tiling.c b/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
index 37f77aee1212..0467b3415d72 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_tiling.c
@@ -65,7 +65,7 @@ u32 i915_gem_fence_size(struct drm_i915_private *i915,
 	if (INTEL_GEN(i915) >= 4) {
 		stride *= i915_gem_tile_height(tiling);
 		GEM_BUG_ON(!IS_ALIGNED(stride, I965_FENCE_PAGE));
-		return roundup(size, stride);
+		return rounddown(size, stride);
 	}
 
 	/* Previous chips need a power-of-two fence region when tiling */
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list