diff options
author | Marek Olšák <[email protected]> | 2019-07-30 17:43:41 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-06 17:08:39 -0400 |
commit | 8b8819e88af0070c242d2d4289ace0eebedbc09c (patch) | |
tree | f89a0b09c866595bfe06042ea5238c8325bfc4b4 /src/gallium/auxiliary | |
parent | b758eed9c373db14a5acc04d9522ec9d74e51f1b (diff) |
radeonsi: make sure that DSA state != NULL and remove all NULL checking
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 7 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index ff4e9a721b3..036c04fda9e 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -347,6 +347,13 @@ void *util_blitter_get_noop_blend_state(struct blitter_context *blitter) return ctx->blend[0][0]; } +void *util_blitter_get_noop_dsa_state(struct blitter_context *blitter) +{ + struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter; + + return ctx->dsa_keep_depth_stencil; +} + static void bind_vs_pos_only(struct blitter_context_priv *ctx, unsigned num_so_channels) { diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index 0db9c2a2816..6d25ba57671 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -155,6 +155,7 @@ void util_blitter_destroy(struct blitter_context *blitter); void util_blitter_cache_all_shaders(struct blitter_context *blitter); void *util_blitter_get_noop_blend_state(struct blitter_context *blitter); +void *util_blitter_get_noop_dsa_state(struct blitter_context *blitter); /** |