From: Timothy Arceri Date: Wed, 26 Jun 2019 13:02:12 +0000 (+1000) Subject: st/glsl: fix silly regression finding gs/tes variants X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f809e270767851dc70cbfd63cb158e0ee46f29e;p=mesa.git st/glsl: fix silly regression finding gs/tes variants Fixes: d19fe5e67a39 ("st/glsl: support clamping color outputs in compat for gs/tes") Reviewed-by: Ilia Mirkin --- diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 3c99721a8a7..faada1621ca 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -1641,7 +1641,7 @@ st_get_basic_variant(struct st_context *st, /* Search for existing variant */ for (v = prog->variants; v; v = v->next) { - if (memcmp(&v->key, &key, sizeof(key)) == 0) { + if (memcmp(&v->key, key, sizeof(*key)) == 0) { break; } }