From: Jason Ekstrand Date: Thu, 4 Jul 2019 23:26:20 +0000 (-0500) Subject: iris: Use a uint16_t for key sizes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4633298fd62121a466884998cb64d7a5b5976fcd;p=mesa.git iris: Use a uint16_t for key sizes sizeof(struct brw_vs_prog_key) == 324. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/iris/iris_program_cache.c b/src/gallium/drivers/iris/iris_program_cache.c index 9bf8345352f..4e6f4e28c0b 100644 --- a/src/gallium/drivers/iris/iris_program_cache.c +++ b/src/gallium/drivers/iris/iris_program_cache.c @@ -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]; };