From: Kenneth Graunke Date: Sat, 16 Jun 2018 17:13:14 +0000 (-0700) Subject: iris: pc fixes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0db86016f7ce5ca110ce93a1411dfb98205675d5;p=mesa.git iris: pc fixes --- 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,