iris: pc fixes

This commit is contained in:
Kenneth Graunke 2018-06-16 10:13:14 -07:00
parent f9f8ea7070
commit 0db86016f7

View file

@ -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,