Bug 93387

Summary: inverse() shouldn’t be exposed in GLSL 1.20 and 1.30
Product: Mesa Reporter: Link Mauve <bugs>
Component: glsl-compilerAssignee: Kenneth Graunke <kenneth>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
i915 platform: i915 features:

Description Link Mauve 2015-12-15 15:52:24 UTC
This GLSL function was only added in 1.40, and thus should never be exposed in lower versions.
Comment 1 Kenneth Graunke 2015-12-16 18:08:16 UTC
Good catch, thanks!  I apparently screwed this up in 722eff674b832e2321f791c68358ef52d2a1ff25.

I just mailed out a patch:
Comment 2 Kenneth Graunke 2015-12-17 03:36:48 UTC
Fixed in master by:

commit 4a5cff24d77df6070656b501514d8c304fdbabdf
Author: Kenneth Graunke <kenneth@whitecape.org>
Date:   Wed Dec 16 00:56:39 2015 -0800

    glsl: Remove inverse() from GLSL 1.20 and 1.30.
    I apparently regressed this when rewriting the built-ins using
    ir_builder, in 76d2f73643f.
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93387
    Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
    Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
    Reviewed-by: Matt Turner <mattst88@gmail.com>

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.