diff options
author | Marek Olšák <[email protected]> | 2016-02-06 17:13:07 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-02-09 21:19:51 +0100 |
commit | 17fe3fa312d26db58b1c441519a92cd029e03727 (patch) | |
tree | 541ad34310aed5f08acd145122ee408764d7dd5d /src/gallium | |
parent | d611fce23dce77e674a3fca6e7ed555570efbedb (diff) |
gallium: pass the robust buffer access context flag to drivers
radeonsi will not do bounds checking for loads if this is not set.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 6 |
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 800f16cd250..b01f6ea3dcb 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -349,6 +349,12 @@ enum pipe_flush_flags #define PIPE_CONTEXT_DEBUG (1 << 1) /** + * Whether out-of-bounds shader loads must return zero and out-of-bounds + * shader stores must be dropped. + */ +#define PIPE_CONTEXT_ROBUST_BUFFER_ACCESS (1 << 2) + +/** * Flags for pipe_context::memory_barrier. */ #define PIPE_BARRIER_MAPPED_BUFFER (1 << 0) |