Module: Mesa
Branch: staging/22.3
Commit: 77e9cf4fb7836a01e0210cc016a04d97495eb0af
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=77e9cf4fb7836a01e0210cc016a04d97495eb0af

Author: José Roberto de Souza <[email protected]>
Date:   Mon Jan 23 13:02:34 2023 -0800

intel/ds: Nuke intel_ds_queue::queue_id

queue_id is not used anywhere.

Signed-off-by: José Roberto de Souza <[email protected]>
Reviewed-by: Marcin Ślusarz <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20888>
(cherry picked from commit 5ccc2049fae591d1baf6f581bbd0e3953c0ee5fa)

---

 .pick_status.json               | 2 +-
 src/intel/ds/intel_driver_ds.cc | 1 -
 src/intel/ds/intel_driver_ds.h  | 3 ---
 3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 45d82f611bd..aeda50dda7d 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -2326,7 +2326,7 @@
         "description": "intel/ds: Nuke intel_ds_queue::queue_id",
         "nominated": false,
         "nomination_type": null,
-        "resolution": 4,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null
     },
diff --git a/src/intel/ds/intel_driver_ds.cc b/src/intel/ds/intel_driver_ds.cc
index 344e7ed2145..516be6d6c9e 100644
--- a/src/intel/ds/intel_driver_ds.cc
+++ b/src/intel/ds/intel_driver_ds.cc
@@ -550,7 +550,6 @@ intel_ds_device_add_queue(struct intel_ds_device *device,
    memset(queue, 0, sizeof(*queue));
 
    queue->device = device;
-   queue->queue_id = u_vector_length(&device->queues) - 1;
 
    va_start(ap, fmt_name);
    vsnprintf(queue->name, sizeof(queue->name), fmt_name, ap);
diff --git a/src/intel/ds/intel_driver_ds.h b/src/intel/ds/intel_driver_ds.h
index ca03c651636..b5e509133ee 100644
--- a/src/intel/ds/intel_driver_ds.h
+++ b/src/intel/ds/intel_driver_ds.h
@@ -125,9 +125,6 @@ struct intel_ds_queue {
    /* Device this queue belongs to */
    struct intel_ds_device *device;
 
-   /* Unique queue ID across the device */
-   uint32_t queue_id;
-
    /* Unique name of the queue */
    char name[80];
 

Reply via email to