From: Chia-I Wu Date: Wed, 7 Aug 2013 09:32:38 +0000 (+0800) Subject: ilo: correctly check for stencil ref change X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=186dab5b8fd1d937dfb3b4379d00e4e88f929c36;p=mesa.git ilo: correctly check for stencil ref change I intended to do a memcmp(), not a memcpy()... --- diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index 59cc8ff3621..fea530af2bd 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -574,7 +574,7 @@ ilo_set_stencil_ref(struct pipe_context *pipe, struct ilo_context *ilo = ilo_context(pipe); /* util_blitter may set this unnecessarily */ - if (!memcpy(&ilo->stencil_ref, state, sizeof(*state))) + if (!memcmp(&ilo->stencil_ref, state, sizeof(*state))) return; ilo->stencil_ref = *state;