diff options
author | George Kyriazis <[email protected]> | 2017-09-25 12:58:18 -0500 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2017-09-26 18:09:19 -0500 |
commit | e927cb55a998941f3889f127f3d4175ceb1f5b82 (patch) | |
tree | 06fd6e91e82149643876b83ed054dc708e165fdb /src/gallium/drivers/swr/swr_state.cpp | |
parent | b9aa0fa7d646f9ebb0a2e08d262c2eebfd875610 (diff) |
swr: Remove unneeeded comparison
No need to check if screen->pipe != pipe, so we can just assign it. Just do it.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_state.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_state.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index 893bd6e5bcc..c6da4fcb8ed 100644 --- a/src/gallium/drivers/swr/swr_state.cpp +++ b/src/gallium/drivers/swr/swr_state.cpp @@ -1074,8 +1074,7 @@ swr_update_derived(struct pipe_context *pipe, } /* Update screen->pipe to current pipe context. */ - if (screen->pipe != pipe) - screen->pipe = pipe; + screen->pipe = pipe; /* Any state that requires dirty flags to be re-triggered sets this mask */ /* For example, user_buffer vertex and index buffers. */ |