From: Kenneth Graunke Date: Tue, 27 Nov 2018 23:35:48 +0000 (-0800) Subject: iris: drop key_size_for_cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbe198d6bad2f7162e1dc082da3337278bf79c2d;p=mesa.git iris: drop key_size_for_cache dead since my program cache API rework. we could still use it for one function, but it's so trivial to pass the size, that it's probably not worth the extra code --- diff --git a/src/gallium/drivers/iris/iris_program_cache.c b/src/gallium/drivers/iris/iris_program_cache.c index 44a38f1b4aa..1bc380e3df3 100644 --- a/src/gallium/drivers/iris/iris_program_cache.c +++ b/src/gallium/drivers/iris/iris_program_cache.c @@ -50,24 +50,6 @@ struct keybox { uint8_t data[0]; }; -static uint32_t -key_size_for_cache(enum iris_program_cache_id cache_id) -{ - static const unsigned key_sizes[] = { - [IRIS_CACHE_VS] = sizeof(struct brw_vs_prog_key), - [IRIS_CACHE_TCS] = sizeof(struct brw_tcs_prog_key), - [IRIS_CACHE_TES] = sizeof(struct brw_tes_prog_key), - [IRIS_CACHE_GS] = sizeof(struct brw_gs_prog_key), - [IRIS_CACHE_FS] = sizeof(struct brw_wm_prog_key), - [IRIS_CACHE_CS] = sizeof(struct brw_cs_prog_key), - }; - - /* BLORP keys aren't all the same size. */ - assert(cache_id != IRIS_CACHE_BLORP); - - return key_sizes[cache_id]; -} - static struct keybox * make_keybox(void *mem_ctx, enum iris_program_cache_id cache_id,