From 186dab5b8fd1d937dfb3b4379d00e4e88f929c36 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 7 Aug 2013 17:32:38 +0800 Subject: [PATCH] ilo: correctly check for stencil ref change I intended to do a memcmp(), not a memcpy()... --- src/gallium/drivers/ilo/ilo_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2