spirv: Add an option for making FragCoord a sysval
[mesa.git] / src / compiler / spirv / nir_spirv.h
index c4381bdf62e3e0283e72b2ae11c39277587d91e8..d427a9a1973aebd45a8aea23608a0e21ff7a5724 100644 (file)
@@ -70,6 +70,11 @@ struct spirv_to_nir_options {
    /* Whether or not to lower all UBO/SSBO access to offsets up-front. */
    bool lower_ubo_ssbo_access_to_offsets;
 
+   /* Whether to make FragCoord to a system value, the same as
+    * GLSLFragCoordIsSysVal in GLSL.
+    */
+   bool frag_coord_is_sysval;
+
    struct spirv_supported_capabilities caps;
 
    /* Address format for various kinds of pointers. */