nir/print: Factor variable name lookup into a helper
[mesa.git] / src / glsl / ast_to_hir.cpp
index 35a1e134dfa0f0d9458ab3e29e4bd660a3edecdc..fc6bb3e31f151aa2b35ab8584e31cd02788469d1 100644 (file)
@@ -1088,6 +1088,7 @@ do_comparison(void *mem_ctx, int operation, ir_rvalue *op0, ir_rvalue *op1)
    case GLSL_TYPE_SAMPLER:
    case GLSL_TYPE_IMAGE:
    case GLSL_TYPE_INTERFACE:
+   case GLSL_TYPE_FUNCTION:
    case GLSL_TYPE_ATOMIC_UINT:
    case GLSL_TYPE_SUBROUTINE:
       /* I assume a comparison of a struct containing a sampler just