[Mesa-dev] [PATCH 1/3] i965: Fix brw_clear_cache to clean up TCS/TES shaders.

Timothy Arceri timothy.arceri at collabora.com
Sun Oct 2 22:41:45 UTC 2016


This patch is:

Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>

On Sun, 2016-10-02 at 14:48 -0700, Kenneth Graunke wrote:
> We need to free prog_data for TCS/TES too.
> 
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/drivers/dri/i965/brw_state_cache.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c
> b/src/mesa/drivers/dri/i965/brw_state_cache.c
> index 0e98e65..43b0a20 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) {


More information about the mesa-dev mailing list