swr: Remove unneeeded comparison
authorGeorge Kyriazis <george.kyriazis@intel.com>
Mon, 25 Sep 2017 17:58:18 +0000 (12:58 -0500)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Tue, 26 Sep 2017 23:09:19 +0000 (18:09 -0500)
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>
src/gallium/drivers/swr/swr_state.cpp

index 893bd6e5bcc15af73283cd08c4efc3cf79b40a03..c6da4fcb8ed253858e1d0b80867d4a9155d748bb 100644 (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. */