Created attachment 122184 [details] Incorrectly rendered demo On Gen7, and prior the following commit: commit 248ab61740c4082517424f5aa94b2f4e7b210d76 Author: Jason Ekstrand <jason.ekstrand@intel.com> Date: Tue Mar 8 17:10:05 2016 -0800 anv/cmd_buffer: Pull the core of flush_state into genX_cmd_buffer the Sascha Willems vulkanscene demo was rendering correctly. Now however, a gray oval is rendered in the middle of the demo. Reference: https://github.com/SaschaWillems/Vulkan/blob/master/screenshots/vulkan_scene.png
With further testing, I've determined that a number of demos besides vulkanscene are affected.
Turns out that the problem is that calling cmd_buffer_config_l3 isn't safe to do when rendering on gen7. We need to fix that. Re-assigning to Jordan.
I just pushed a band-aid patch that doesn't actually solve the problem but does get it back to working as well as it did before: commit 41af9b2e517dd0c17e519490ca915b96f6898390 Author: Jason Ekstrand <jason.ekstrand@intel.com> Date: Sat Mar 12 08:54:41 2016 -0800 HACK: Don't re-configure L3$ in render stages pre-BDW This fixes a "regression" on Haswell and prior caused by merging the gen7 and gen8 flush_state functions. Haswell should still work just fine if you're on a 4.4 kernel, but we really should make it detect the command parser version and do something intelligent.
I've tried (unsuccessfully) to reproduce this on two Haswell systems. Device: Mesa DRI Intel(R) Haswell Mobile (0xa26) Device: Mesa DRI Intel(R) Haswell Mobile (0xa2e)
I've had a similar problem with the vkcube demo (https://github.com/krh/vkcube) on my MacBook Air HSW : https://bugs.freedesktop.org/show_bug.cgi?id=95139 I wonder whether that's the same issue. Interestingly enough the cube demo from https://github.com/LunarG/VulkanTools.git works. My system : Device: Mesa DRI Intel(R) Haswell Mobile (0xa26)
Jason had a workaround patch to fix this previously, but hopefully it is fixed without the workaround as of 6c9f35bb73ca69b75cb40fc96c41717806fc74da.
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.