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/queue.c b/icd/intel/queue.c
index 7c4f49b..393a31b 100644
--- a/icd/intel/queue.c
+++ b/icd/intel/queue.c
@@ -68,7 +68,7 @@
struct intel_bo *bo;
void *ptr;
- bo = intel_winsys_alloc_buffer(queue->dev->winsys,
+ bo = intel_winsys_alloc_bo(queue->dev->winsys,
"queue bo", size, true);
if (!bo)
return NULL;
@@ -78,7 +78,7 @@
ptr = intel_bo_map(bo, true);
if (!ptr) {
- intel_bo_unreference(bo);
+ intel_bo_unref(bo);
return NULL;
}
@@ -174,7 +174,7 @@
ret = queue_submit_bo(queue, bo, sizeof(ctx_init_cmd));
if (ret != XGL_SUCCESS) {
- intel_bo_unreference(bo);
+ intel_bo_unref(bo);
return ret;
}
@@ -211,7 +211,7 @@
return ret;
if (intel_debug & INTEL_DEBUG_HANG) {
- intel_winsys_read_reset_stats(queue->dev->winsys,
+ intel_winsys_get_reset_stats(queue->dev->winsys,
&active[0], &pending[0]);
}
@@ -222,7 +222,7 @@
if (intel_debug & INTEL_DEBUG_HANG) {
intel_bo_wait(bo, -1);
- intel_winsys_read_reset_stats(queue->dev->winsys,
+ intel_winsys_get_reset_stats(queue->dev->winsys,
&active[1], &pending[1]);
if (active[0] != active[1] || pending[0] != pending[1]) {
@@ -289,15 +289,11 @@
void intel_queue_destroy(struct intel_queue *queue)
{
- if (queue->seqno_bo)
- intel_bo_unreference(queue->seqno_bo);
+ intel_bo_unref(queue->seqno_bo);
+ intel_bo_unref(queue->atomic_bo);
+ intel_bo_unref(queue->select_graphics_bo);
+ intel_bo_unref(queue->select_compute_bo);
- if (queue->atomic_bo)
- intel_bo_unreference(queue->atomic_bo);
- if (queue->select_graphics_bo)
- intel_bo_unreference(queue->select_graphics_bo);
- if (queue->select_compute_bo)
- intel_bo_unreference(queue->select_compute_bo);
intel_base_destroy(&queue->base);
}
@@ -367,10 +363,8 @@
last_cmd = intel_cmd(pCmdBuffers[i - 1]);
if (ret == XGL_SUCCESS) {
- if (queue->seqno_bo)
- intel_bo_unreference(queue->seqno_bo);
- queue->seqno_bo = intel_cmd_get_batch(last_cmd, NULL);
- intel_bo_reference(queue->seqno_bo);
+ intel_bo_unref(queue->seqno_bo);
+ queue->seqno_bo = intel_bo_ref(intel_cmd_get_batch(last_cmd, NULL));
if (fence_ != XGL_NULL_HANDLE) {
struct intel_fence *fence = intel_fence(fence_);