Summary: | [BDW]Piglit spec_ARB_texture_cube_map_copyteximage_CUBE_samples=2 fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | lu hua <huax.lu> |
Component: | Drivers/DRI/i965 | Assignee: | Kenneth Graunke <kenneth> |
Status: | VERIFIED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
lu hua
2014-04-09 07:09:08 UTC
This appears to be a bug with fast depth clears or HiZ. They work if you run with hiz=false. This works if you disable fast depth clears. It also works if you add a PIPE_CONTROL with a TC flush at the end of gen8_hiz_exec. I found documentation saying we may need a DEPTH_CACHE_FLUSH and DEPTH_STALL, but nothing about a TC flush. Need to investigate more... Patch on mailing list: http://lists.freedesktop.org/archives/mesa-dev/2014-April/058178.html (In reply to comment #3) > Patch on mailing list: > http://lists.freedesktop.org/archives/mesa-dev/2014-April/058178.html Fixed by this patch. Fixed by: commit 34a68345e228b7cbc1bc6909704a89c08bf5368e Author: Kenneth Graunke <kenneth@whitecape.org> Date: Mon Apr 21 14:08:49 2014 -0700 i965: Make Broadwell HiZ path arrange for TC flushes. HiZ operations make the depth/render caches out of sync with the sampler caches. We need to arrange for a TC flush to happen before the target buffer is used by the sampler. Calling brw_render_cache_set_add_bo makes that happen. On previous generations, brw_blorp_exec took care of flushing the texture cache by calling intel_batchbuffer_emit_mi_flush after doing any rendering. If we were to use the normal drawing path, then brw_postdraw_set_buffers_need_resolve would handle this. On Broadwell, we don't use BLORP, and we don't emit a rectangle primitive via the normal drawing path. The 3DSTATE_WM_HZ_OP and PIPE_CONTROL implicitly make drawing happen. So, none of our existing code makes this flush happen - we need to do it directly. Fixes 11 Piglit copyteximage subtests. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77223 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77226 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Verified.Fixed. |
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.