Summary: | DRI_PRIME causes X Error of failed request: BadAlloc (insufficient resources for operation) | ||
---|---|---|---|
Product: | Mesa | Reporter: | bartos.petr |
Component: | Drivers/DRI/i965 | Assignee: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | critical | ||
Priority: | medium | CC: | mike |
Version: | 17.2 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
bartos.petr
2017-08-01 21:20:24 UTC
Please track down which commit exactly broke it. So I have some partial results. First problem I've encoutered is that I had to use patch from https://bugs.freedesktop.org/show_bug.cgi?id=101774 in order to be able to build mesa between 7250cbafb90271579a1d07160498e902996cbc97 and 5ffe0c9e1be0257de1943135244419cbc86a6d84 so I hope it does not affect these results. Second problem I found is that problem is connected with using modesetting DDX drivers, and between working and non-working commits is some problem causing segfault with modesetting drivers (X do not start). So I have tested not only particular commits, but also DDX driver combinations: intel - IGPU, DRI3, SNA accel radeon - DGPU, DRI3, glamor accel modesetting - both, default settings So far I managed to find this (I have not finished bisecting yet, so these commits are ones I've found so far): f33d8af7aa354d00808f8bfd55028c396c706635 intel, radeon - OK intel, modesetting - OK modesetting, radeon - ERROR modesetting, modesetting - ERROR 81fb1547772d42c527318837d4207ecdb6899e5d intel, radeon - OK intel, modesetting - SEGFAULT modesetting, radeon - SEGFAULT modesetting, modesetting - SEGFAULT 3645268748c44825ce8d37bf03f684731eb2652a intel, radeon - OK intel, modesetting - SEGFAULT modesetting, radeon - SEGFAULT modesetting, modesetting - SEGFAULT 84ed8b67c56b323cd834d463151e1a3c0430c53e intel, radeon - OK intel, modesetting - OK modesetting, radeon - OK modesetting, modesetting - OK So it seems between somewhere between 84ed8b67c56b323cd834d463151e1a3c0430c53e and f33d8af7aa354d00808f8bfd55028c396c706635 (https://cgit.freedesktop.org/mesa/mesa/log/?qt=range&q=84ed8b67c56b323cd834d463151e1a3c0430c53e..f33d8af7aa354d00808f8bfd55028c396c706635) modesetting driver started to segfault which was fixed, but this fix probably also caused problem which I have reported. It also seems there is no problem when using only intel+radeon DDX drivers. I've been seeing this too, out of interest Bartos do 32bit apps render correctly with DRI_PRIME I've been getting a black screen? I also have this problem to with my laptop (Intel Skylake iGPU + AMD TOPAZ dGPU) The issue is only with opengl, radv works fine. The BadAlloc only happens with some window sizes. It can be easily tested with glxgears. For instance, there is no problem with 1600x900 or default size, 300x300. With this height (300), I can resize the width between 257 and 448 without hitting a BadAlloc. With a width of 192, I have no problem with the following heights: 123, 124, 129, 123, 131, 132, 134, 135, 136, 139, 140, 145, 146, 147, 148, 150, 151, 152, 155, 156, 161 I have a BadAlloc with those heights: 125, 126, 127, 128, 133, 137, 138, 141, 142, 143, 144, 149, 153, 154, 157, 158, 159, 160 So after applying patch to avoid segfault (from 655a32f729a46176c1fc0c1727b33c15c69cad78) I was able to further bisect and found that error is caused by commit 34e1ccbfbe851ecf4ebbfc86d70da384d176d994 Therefore I have also changed component from radeonsi to i965. As for rendering, Mike, I am using plasma where I must disable kwin compositor for full screen apps, else I see also blackscreen (but I did not notice, that is is related to 32 or 64bit apps) I no longer have this problem with mesa git. Can you confirm that? Hi, confirming, I also do not have this problem with mesa git anymore. And it is fixed also in 17.2.0 rc5 |
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.