diff options
author | Kenneth Graunke <[email protected]> | 2018-06-16 10:13:14 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | 0db86016f7ce5ca110ce93a1411dfb98205675d5 (patch) | |
tree | 1d14d1597fdd9d4fe12440afa4513426893e9c73 | |
parent | f9f8ea7070bcd5386785712bbe7a0035532f7858 (diff) |
iris: pc fixes
-rw-r--r-- | src/gallium/drivers/iris/iris_program_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |