summaryrefslogtreecommitdiffstats
path: root/src/util/xmlpool/t_options.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-08-29 15:48:47 +1000
committerTimothy Arceri <[email protected]>2018-08-30 09:54:40 +1000
commit9c47c39687a320bedcc0d674ab963c38390ab5c5 (patch)
tree25a9f7317b95a4be7869f04c55fcd275c7973aeb /src/util/xmlpool/t_options.h
parent9ce7d79cdc503ffddfa11609ffb91e297953c2ce (diff)
st/mesa, gallium: add a workaround for No Mans Sky
The spec seems clear this is not allowed but the Nvidia binary forces apps to add layout qualifiers so this works around the issue for No Mans Sky until the CTS can be sorted out. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util/xmlpool/t_options.h')
-rw-r--r--src/util/xmlpool/t_options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h
index 945d0e60f90..b6f7eed80b1 100644
--- a/src/util/xmlpool/t_options.h
+++ b/src/util/xmlpool/t_options.h
@@ -135,6 +135,11 @@ DRI_CONF_OPT_BEGIN_B(allow_glsl_cross_stage_interpolation_mismatch, def) \
DRI_CONF_DESC(en,gettext("Allow interpolation qualifier mismatch across shader stages")) \
DRI_CONF_OPT_END
+#define DRI_CONF_ALLOW_GLSL_LAYOUT_QUALIFIER_ON_FUNCTION_PARAMETERS(def) \
+DRI_CONF_OPT_BEGIN_B(allow_glsl_layout_qualifier_on_function_parameters, def) \
+ DRI_CONF_DESC(en,gettext("Allow layout qualifiers on function parameters.")) \
+DRI_CONF_OPT_END
+
/**
* \brief Image quality-related options
*/