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 | 8d90157d49a609ec87cf1c833248bc0cfc606f89 (patch) | |
tree | 8f009891d877d83deaa4bebb6bf703b1685e0937 /src/gallium/drivers/radeonsi/si_state_viewport.c | |
parent | 8b8819e88af0070c242d2d4289ace0eebedbc09c (diff) |
radeonsi: make sure that rasterizer state != NULL and remove all NULL checking
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_viewport.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_viewport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_viewport.c b/src/gallium/drivers/radeonsi/si_state_viewport.c index 55bdb037082..2d2ab5ffa08 100644 --- a/src/gallium/drivers/radeonsi/si_state_viewport.c +++ b/src/gallium/drivers/radeonsi/si_state_viewport.c @@ -39,8 +39,7 @@ static void si_set_scissor_states(struct pipe_context *pctx, for (i = 0; i < num_scissors; i++) ctx->scissors[start_slot + i] = state[i]; - if (!ctx->queued.named.rasterizer || - !ctx->queued.named.rasterizer->scissor_enable) + if (!ctx->queued.named.rasterizer->scissor_enable) return; si_mark_atom_dirty(ctx, &ctx->atoms.s.scissors); |