Summary: | Mesa fails to optimize the sum of multiple vector multiplications into a matrix multiplication | ||
---|---|---|---|
Product: | Mesa | Reporter: | Samuel Rødal <srodal> |
Component: | glsl-compiler | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | 8.0 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Samuel Rødal
2012-09-20 15:07:43 UTC
Sorry, that should be mat3(nf1, nf2, nf3) * v.zyx. Example change from real-world example implementing this optimization: 1.7 - fragment+='vec3 _nrm = normalize(vec3(norm2.z*nf1+norm2.y*nf2+norm2.x*nf3)*2.0-1.0);'; 1.8 + fragment+='vec3 _nrm = normalize(mat3(nf3, nf2, nf1)*norm2.xyz*2.0-1.0);'; Removing dependency from i965-perf. Those two expressions produce the same code in the i965 backend. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/796. |
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.