intel: update kmd
intel_winsys_import_userptr() was added.
intel_winsys_read_reset_stats() was renamed to intel_winsys_get_reset_stats().
intel_bo_reference()/intel_bo_unreference() was replaced by
intel_bo_ref()/intel_bo_unref().
intel_winsys_alloc_buffer() was renamed to intel_winsys_alloc_bo(). The
old intel_winsys_alloc_bo() was removed and intel_bo_set_tiling() was
added.
diff --git a/icd/intel/cmd.c b/icd/intel/cmd.c
index afdd869..9037b8d 100644
--- a/icd/intel/cmd.c
+++ b/icd/intel/cmd.c
@@ -48,10 +48,8 @@
writer->ptr = NULL;
}
- if (writer->bo) {
- intel_bo_unreference(writer->bo);
- writer->bo = NULL;
- }
+ intel_bo_unref(writer->bo);
+ writer->bo = NULL;
writer->used = 0;
@@ -89,7 +87,7 @@
[INTEL_CMD_WRITER_INSTRUCTION] = "instruction",
};
- return intel_winsys_alloc_buffer(winsys, writer_names[which], size, true);
+ return intel_winsys_alloc_bo(winsys, writer_names[which], size, true);
}
/**
@@ -103,8 +101,7 @@
bo = alloc_writer_bo(cmd->dev->winsys, which, writer->size);
if (bo) {
- if (writer->bo)
- intel_bo_unreference(writer->bo);
+ intel_bo_unref(writer->bo);
writer->bo = bo;
} else if (writer->bo) {
/* reuse the old bo */
@@ -162,7 +159,7 @@
/* map and copy the data over */
new_ptr = intel_bo_map(new_bo, true);
if (!new_ptr) {
- intel_bo_unreference(new_bo);
+ intel_bo_unref(new_bo);
cmd_writer_discard(cmd, which);
cmd_fail(cmd, XGL_ERROR_UNKNOWN);
return;
@@ -171,7 +168,7 @@
memcpy(new_ptr, writer->ptr, writer->used);
intel_bo_unmap(writer->bo);
- intel_bo_unreference(writer->bo);
+ intel_bo_unref(writer->bo);
writer->size = new_size;
writer->bo = new_bo;