i965: Fix brw_clear_cache to clean up TCS/TES shaders.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Sep 2016 04:04:21 +0000 (21:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Oct 2016 00:09:08 +0000 (17:09 -0700)
We need to free prog_data for TCS/TES too.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arcero@collabora.com>
src/mesa/drivers/dri/i965/brw_state_cache.c

index 0e98e654c1c7c67e41afc2de4a59999c5f701d93..43b0a202f29ee5a66ff2b6ebef7f8123faaaf5b4 100644 (file)
@@ -366,6 +366,8 @@ brw_clear_cache(struct brw_context *brw, struct brw_cache *cache)
       for (c = cache->items[i]; c; c = next) {
         next = c->next;
          if (c->cache_id == BRW_CACHE_VS_PROG ||
+             c->cache_id == BRW_CACHE_TCS_PROG ||
+             c->cache_id == BRW_CACHE_TES_PROG ||
              c->cache_id == BRW_CACHE_GS_PROG ||
              c->cache_id == BRW_CACHE_FS_PROG ||
              c->cache_id == BRW_CACHE_CS_PROG) {