Summary: | [bisected] oglc pbo(negative.invalidOffsetValue) aborts on 7.11 branch | ||
---|---|---|---|
Product: | Mesa | Reporter: | fangxun <xunx.fang> |
Component: | Drivers/DRI/i915 | Assignee: | Ian Romanick <idr> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | high | CC: | idr, kenneth, yuanhan.liu |
Version: | 7.11 | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
fangxun
2011-10-26 02:38:46 UTC
It passes on mesa master branch. This should be fixed on the 7.11 branch by the following commit: commit 5459781715f47dcd3f93d84e69ab82245f684660 Author: Yuanhan Liu <yuanhan.liu@linux.intel.com> Date: Wed Nov 2 14:13:45 2011 +0800 intel: don't call unmap pbo if pbo is not mapped The PBO only needs to be unmapped if one of the previous calls to _mesa_validate_pbo_* succeeded. In this case, pixels will be non-NULL. Various paths through _mesa_unmap_texmiage_pbo can hit assertion failures or segfaults if the buffer is not mapped. To work around this, move the call to _mesa_unmap_teximage_pbo inside the last 'if (pixels)' block. NOTE: this is just for 7.11 stable branch Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42268 Verified with mesa(7.11) commit 4464ee1a9aa3745109cee23531e3fb2323234d07. |
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.