aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-11-27 15:35:48 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:10 -0800
commitdbe198d6bad2f7162e1dc082da3337278bf79c2d (patch)
tree17a364a9b70430e88fe880e3ddd2b3b12555c35c
parente4115eaca015ad97e1668a9237a3896326074a4d (diff)
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
-rw-r--r--src/gallium/drivers/iris/iris_program_cache.c18
1 files changed, 0 insertions, 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,