[Mesa-dev] [PATCH] st/glsl: fix silly regression finding gs/tes variants

Timothy Arceri tarceri at itsqueeze.com
Wed Jun 26 13:02:12 UTC 2019


Fixes: d19fe5e67a39 ("st/glsl: support clamping color outputs in compat for gs/tes")
---
 src/mesa/state_tracker/st_program.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
       }
    }
-- 
2.20.1



More information about the mesa-dev mailing list