From 0db86016f7ce5ca110ce93a1411dfb98205675d5 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 16 Jun 2018 10:13:14 -0700 Subject: [PATCH] iris: pc fixes --- src/gallium/drivers/iris/iris_program_cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/iris/iris_program_cache.c b/src/gallium/drivers/iris/iris_program_cache.c index d80de6e6c4b..2e9846df732 100644 --- a/src/gallium/drivers/iris/iris_program_cache.c +++ b/src/gallium/drivers/iris/iris_program_cache.c @@ -227,7 +227,9 @@ iris_upload_shader(struct iris_context *ice, * backend. */ if (existing) { + pipe_resource_reference(&shader->buffer, existing->buffer); shader->offset = existing->offset; + shader->map = existing->map; } else { shader->buffer = NULL; u_upload_alloc(ice->shaders.uploader, 0, prog_data->program_size, -- 2.30.2