Summary: | [i965 Bisected]ES2-CTS.gtf.GL.cos.cos_float_vert_xvary fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | lu hua <huax.lu> |
Component: | Drivers/DRI/i965 | Assignee: | Matt Turner <mattst88> |
Status: | VERIFIED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | high | CC: | idr, kondapallykalyancontribute, michael.w.mason |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | patch |
Description
lu hua
2014-12-31 02:20:09 UTC
Following webglc cases also fail with the same bisect commit: conformance/glsl/functions/glsl-function-ceil.html conformance/glsl/functions/glsl-function-clamp-float.html conformance/glsl/functions/glsl-function-clamp-gentype.html conformance/glsl/functions/glsl-function-cos.html conformance/glsl/functions/glsl-function-floor.html conformance/glsl/functions/glsl-function-normalize.html conformance/glsl/functions/glsl-function-sign.html conformance/glsl/functions/glsl-function-sin.html conformance/glsl/functions/glsl-function-step-float.html conformance/glsl/functions/glsl-function-step-gentype.html It looks like opt_vector_float is just deleting writes to m4: -mov m4.yz:F, 0.000000F -mov m4.w:F, 1.000000F -mov vgrf4.0.x:F, 0.500000F +mov vgrf4.0:F, [0.5F, 0F, 0F, 1F] mov vgrf5.0.x:F, 0.500000F mul vgrf7.0.x:F, attr17.xxxx:F, 6.283185F cos vgrf6.0.x:F, vgrf7.xxxx:F I haven't looked at the code to determine why (I figure I'll let Matt fix it). I do have patches on the list to make INTEL_DEBUG=optimizer work for debugging this. (In reply to Kenneth Graunke from comment #2) > It looks like opt_vector_float is just deleting writes to m4: > > -mov m4.yz:F, 0.000000F > -mov m4.w:F, 1.000000F > -mov vgrf4.0.x:F, 0.500000F > +mov vgrf4.0:F, [0.5F, 0F, 0F, 1F] > mov vgrf5.0.x:F, 0.500000F > mul vgrf7.0.x:F, attr17.xxxx:F, 6.283185F > cos vgrf6.0.x:F, vgrf7.xxxx:F > > I haven't looked at the code to determine why (I figure I'll let Matt fix > it). > I do have patches on the list to make INTEL_DEBUG=optimizer work for > debugging this. Oh, that's awesome. It's seeing writes to all 4 channels of register 4. Register 4 just happens to be in different register files! *** Bug 88115 has been marked as a duplicate of this bug. *** Created attachment 112136 [details] [review] patch Patch sent to the mailing list. Please test. (In reply to Matt Turner from comment #5) > Created attachment 112136 [details] [review] [review] > patch > > Patch sent to the mailing list. Please test. Test this patch on IVB/ILK, it works well. Fixed with commit 41d9f232b6a7f53086b9c428cca30e45905abd48 Author: Matt Turner <mattst88@gmail.com> Date: Mon Jan 12 10:48:04 2015 -0800 i965/vec4: Make sure that imm writes are to registers in the same file. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87887 *** Bug 88247 has been marked as a duplicate of this bug. *** 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.