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 <bruce.cherniak@intel.com>
This commit is contained in:
George Kyriazis 2017-09-25 12:58:18 -05:00
parent b9aa0fa7d6
commit e927cb55a9
1 changed files with 1 additions and 2 deletions

View File

@ -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. */