aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-30 17:43:41 -0400
committerMarek Olšák <[email protected]>2019-08-06 17:08:39 -0400
commitb758eed9c373db14a5acc04d9522ec9d74e51f1b (patch)
tree011676751d66428073af2aac9f49212c027b1086 /src/gallium/auxiliary/util
parent8b68511ebc1f6444b80e94516826ec87ad495cb1 (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')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c7
-rw-r--r--src/gallium/auxiliary/util/u_blitter.h2
2 files changed, 9 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)
{
diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h
index a57e09f5fd1..0db9c2a2816 100644
--- a/src/gallium/auxiliary/util/u_blitter.h
+++ b/src/gallium/auxiliary/util/u_blitter.h
@@ -154,6 +154,8 @@ struct blitter_context *util_blitter_create(struct pipe_context *pipe);
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);
+
/**
* Return the pipe context associated with a blitter context.