From dbe198d6bad2f7162e1dc082da3337278bf79c2d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 27 Nov 2018 15:35:48 -0800 Subject: [PATCH] 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 --- src/gallium/drivers/iris/iris_program_cache.c | 18 ------------------ 1 file changed, 18 deletions(-) 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, -- 2.30.2