iris: Use a uint16_t for key sizes
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 4 Jul 2019 23:26:20 +0000 (18:26 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 5 Jul 2019 00:52:34 +0000 (19:52 -0500)
sizeof(struct brw_vs_prog_key) == 324.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_program_cache.c

index 9bf8345..4e6f4e2 100644 (file)
@@ -45,7 +45,7 @@
 #include "iris_resource.h"
 
 struct keybox {
-   uint8_t size;
+   uint16_t size;
    enum iris_program_cache_id cache_id;
    uint8_t data[0];
 };