diff options
Diffstat (limited to 'src/compiler/glsl/ir.h')
-rw-r--r-- | src/compiler/glsl/ir.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 241d31f..388b1be 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -1187,17 +1187,14 @@ public: /** Whether or not this function signature is a built-in. */ bool is_builtin() const; - /** Whehter or not this function signautre is an intrinsic. */ - inline bool is_intrinsic() const - { - return _is_intrinsic; - } - /** * Whether or not this function is an intrinsic to be implemented * by the driver. */ - bool _is_intrinsic; + inline bool is_intrinsic() const + { + return intrinsic_id != ir_intrinsic_invalid; + } /** Indentifier for this intrinsic. */ enum ir_intrinsic_id intrinsic_id; |