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 | b758eed9c373db14a5acc04d9522ec9d74e51f1b (patch) | |
tree | 011676751d66428073af2aac9f49212c027b1086 /src/gallium/auxiliary/util/u_blitter.c | |
parent | 8b68511ebc1f6444b80e94516826ec87ad495cb1 (diff) |
radeonsi: make sure that blend state != NULL and remove all NULL checking
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index ffe1a8d46f0..ff4e9a721b3 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -340,6 +340,13 @@ struct blitter_context *util_blitter_create(struct pipe_context *pipe) return &ctx->base; } +void *util_blitter_get_noop_blend_state(struct blitter_context *blitter) +{ + struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter; + + return ctx->blend[0][0]; +} + static void bind_vs_pos_only(struct blitter_context_priv *ctx, unsigned num_so_channels) { |