> > Question: why some builtins care about "supported" while other care > > about the extension being "enabled"? > > There are actually two different things happening. In the cases where > we only care about the extension being supported, we're creating a > hidden intrinsic function. These are used internally by the compiler to > implement various features. In the cases where we care about the > extension being enabled, we're creating the user-visible function. > Usually the user-visible function will is implemented by calling the > intrinsic. This two level approach is used so that we can more cleanly > support cases where multiple extensions have functions with slightly > different names that do the same thing. atomicCounterMaxARB and > atomicCounterMax, for example, are both implemented using > __intrinsic_atomic_max.
Thanks for the explanation! _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev