mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
b9aa0fa7d6
commit
e927cb55a9
1 changed files with 1 additions and 2 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue