New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] Flickering shadows #55
Comments
I have seen this across multiple revisions of mesa (10.3.2, 10.5.8 at least) on Haswell with Intel Iris Pro. I suspect a mesa driver bug, but am not entirely sure yet. I believe it is this mesa bug which has been there for a long time: https://bugs.freedesktop.org/show_bug.cgi?id=80500 |
same here... HD3000 |
@imirkin I am seeing this on Haswell Iris Pro (Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz) on Ubuntu 14.10 x86_64 with both mesa 10.3.2 and 10.5.8. Are you able to repro the issue? Any thoughts from the mesa side? It appears that certain objects are not getting rendered into the shadowmap (you can view the shadowmap with r_dota_shadows_debug 1 from the console and when the flickering happens you will see those objects missing from the shadow map). I haven't had a chance yet to fully investigate this, but I haven't seen the behavior on any other driver/GPU. If you have any insights, please let me know. |
@danginsburg sorry, I just do nouveau (and dabble in core every so often). However if you provide an apitrace of the issue to the intel folk (and file a bug), I suspect they'll be quite happy to investigate. I do know that depth and stencil come with various problems on various intel GPU's (i.e. the driver has to jump through hoops.. diff ones for diff gpu's), so I wouldn't be overly surprised if something went wrong. Alternatively if you provide detailed instructions on how to repro, they may also be able to do it, I suspect they have access to all the Valve games; but don't assume they've ever actually played Dota2 before :) |
This appears to be a bug in mesa. The below patch fixed the issue for me on Haswell. If you are able to rebuild mesa please give this patch a try and report back if it fixes the issue. I'm working with LunarG to figure out how to get the fix into mesa.
|
still flickering for me with this patch (HD3000 - mesa 10.6) |
HD3000 is gen6 so it would require a different fix (the above fix is for gen7). Please try this one for gen6 and see if it works:
|
with this patch only the small bushes in the main map are flickering now, all the trees from the demo map are still flickering |
I haven't tried the patch yet, but I've upgraded mesa to 10.6 and the flickering of trees is gone consistently on all the maps (including demo). However, there's still flickering for towers / bushes / flag poles / etc. |
Here is a proper fix for the flickering shadows. The previous patches that made more gen6_upload_clip_vp calls were actually just propping up a bad implementation of gen6_upload_blend_state. This change produces the correct rendering for the correct reason.
|
Thank you @stroyan! I can confirm that this patch fixes the issue. @stroyan has committed this patch to mesa master so you can either build latest mesa from master or apply this patch to your build and it will fix the shadow issues. Official patch is here: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe2b748a39ff676949fcefccf739aff967fc38c5 Closing. |
Hi,
I have the following issue: the shadows flicker (as if the option was being quickly turned on and off randomly). This requires 'Shadows' to be enabled, but it happens regardless of the state of all the other options (could be max or min settings, as long as Shadows is enabled, the problem is there).
It also happens regardless of weather choices, whether I am in full screen / windowed / etc, and on all the maps.
Below are my system's info :
The text was updated successfully, but these errors were encountered: