Summary: | i965 miptree MCS aux_buf allocation failure with old kernels | ||
---|---|---|---|
Product: | Mesa | Reporter: | Anssi Hannula <anssi.hannula> |
Component: | Drivers/DRI/i965 | Assignee: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Status: | RESOLVED MOVED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | nanleychery |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
glxinfo
Add MMAP_WC check before using MCS Testcase Qt C++ program Testcase apitrace Fallback to non-raw mapping |
Description
Anssi Hannula
2019-05-03 14:17:03 UTC
Created attachment 144148 [details] [review] Add MMAP_WC check before using MCS Created attachment 144149 [details]
Testcase Qt C++ program
Created attachment 144150 [details]
Testcase apitrace
Hi Anssi, I actually have a series that allows the GL drivers to fallback to not having compression if auxiliary surface allocation fails. Does this branch fix your issue? https://gitlab.freedesktop.org/nchery/mesa/tree/sent/refactor/aux-assign Yes, it indeed does fix this bug, thanks. An better performing fix (and possibly the right fix) would involve falling back to a supported mapping. Though, I'm not sure if there would be anything blocking that solution. I think we can drop MAP_RAW if MMAP_WC isn't supported - using a tiled mapping is kind of weird, but we're just filling the whole buffer anyway. We used to do it before 3b4f432d9bbdf86bb6e0e84c6053959aa3194daa. Created attachment 144171 [details] [review] Fallback to non-raw mapping Indeed, the attached patch that simply fallbacks to non-MAP_RAW seems to also work, at least with my testcase. The patch fallbacks to non-raw in all cases, no idea if that is wanted or just for MCS. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1810. |
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.