diff --git a/src/mesa/drivers/dri/i965/brw_program_cache.c b/src/mesa/drivers/dri/i965/brw_program_cache.c index adb0cd5a23b..33b3d12f708 100644 --- a/src/mesa/drivers/dri/i965/brw_program_cache.c +++ b/src/mesa/drivers/dri/i965/brw_program_cache.c @@ -459,6 +459,7 @@ brw_program_cache_check_size(struct brw_context *brw) perf_debug("Exceeded state cache size limit. Clearing the set " "of compiled programs, which will trigger recompiles\n"); brw_clear_cache(brw, &brw->cache); + brw_cache_new_bo(&brw->cache, brw->cache.bo->size); } }