Summary: | [bisected i965]piglit glean/bufferObject regressed | ||
---|---|---|---|
Product: | Mesa | Reporter: | fangxun <xunx.fang> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | high | CC: | eric |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 42993 |
Description
fangxun
2012-01-19 23:18:43 UTC
Bisect shows 8aa7fa770c4ae7660b37ea9d8f496bd6e62d3df8 is the first bad commit. commit 8aa7fa770c4ae7660b37ea9d8f496bd6e62d3df8 Author: Eric Anholt <eric@anholt.net> AuthorDate: Tue Dec 27 17:22:30 2011 -0800 Commit: Eric Anholt <eric@anholt.net> CommitDate: Wed Jan 4 09:51:17 2012 -0800 intel: Fix pitch handling for linear blits. The new assert in intelEmitCopyBlit() gets angry if we don't align to dwords. Rather than make the assert have a special case for height == 1 on the assumption that the hardware doesn't use it in that case, just supply a correct pitch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43214 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> My guess is that this only occurs when *not* run in quick mode. Yeah, random number generator eventually picks a number that fails. I'll build a decent test instead and fix this. Patch posted to mesa-dev mailing list: http://lists.freedesktop.org/archives/mesa-dev/2012-February/018628.html Fixed on 8.0 branch by: commit cf4a7c41f6f2594ce4e8841ae1b268568f4ad1a7 Author: Ian Romanick <ian.d.romanick@intel.com> Date: Thu Feb 2 16:32:45 2012 -0700 intel: Avoid divide by zero for very small linear blits If size is small (such as 1), pitch = ROUND_DOWN_TO(MIN2(size, (1 << 15) - 1), 4); makes pitch = 0. Then height = size / pitch; causes a division-by-zero exception. If pitch is zero, set height to 1 and avoid the division. This fixes piglit's bin/getteximage-formats test and glean's bufferObject test. NOTE: This is a candidate for the 8.0 release branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44971 (cherry picked from commit d59466279e45a1e9c3f9081f72fedbdf961afbe1) Verified with Mesa 8.0 branch(e86d90eb20) and master branch(26de5273acf1ebe). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.