diff options
author | Kenneth Graunke <[email protected]> | 2016-09-22 21:04:21 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-10-04 17:09:08 -0700 |
commit | d3cc3d28bd53f11c5aacef9023dd95a8487c98c4 (patch) | |
tree | 31f1e8bb233ee86a2d2c5d97e36f852e2e98eb1d /src/mesa | |
parent | bab1c056344854ca2e147bafd313723eb3a32ecb (diff) |
i965: Fix brw_clear_cache to clean up TCS/TES shaders.
We need to free prog_data for TCS/TES too.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index 0e98e654c1c..43b0a202f29 100644 --- a/src/mesa/drivers/dri/i965/brw_state_cache.c +++ b/src/mesa/drivers/dri/i965/brw_state_cache.c @@ -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) { |