summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_defines.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-20 22:44:53 +0200
committerMarek Olšák <[email protected]>2017-06-23 19:50:20 +0200
commit118b2008ba18d6cf5d511e0a0bacbb846aad6982 (patch)
treefa55539ece957d80882b4a814a4e77e6983bb8e6 /src/gallium/include/pipe/p_defines.h
parent6b0f6e693ba4b682679e31cc528974bbf0291e45 (diff)
st/dri: add a drirc workaround for Rocket League
This needs to be passed to gallium drivers. No game fix is planned at this time. The addition of glsl_correct_derivatives_after_discard is generally a good thing for mesa compatibility with the broader GL driver ecosystem. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100070 Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_defines.h')
-rw-r--r--src/gallium/include/pipe/p_defines.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index b195af44399..2ccdf44bfe2 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -390,6 +390,12 @@ enum pipe_flush_flags
*/
#define PIPE_CONTEXT_PREFER_THREADED (1 << 3)
+/**
+ * Implicit and explicit derivatives after KILL behave as if KILL didn't
+ * happen.
+ */
+#define PIPE_SCREEN_ENABLE_CORRECT_TGSI_DERIVATIVES_AFTER_KILL (1 << 0)
+
/**
* Flags for pipe_context::memory_barrier.