gallium/radeon: rename the num-ctx-flushes query to num-GFX-IBs
authorMarek Olšák <marek.olsak@amd.com>
Tue, 27 Dec 2016 16:54:18 +0000 (17:54 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 6 Jan 2017 20:05:48 +0000 (21:05 +0100)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/radeon/r600_query.h
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.h
src/gallium/winsys/radeon/drm/radeon_drm_cs.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.h

index 6b93329e0eeaa30230f9e21a4cea2476f5d2031c..70a25684ceb26fff87a76f7108512cfd349aca01 100644 (file)
@@ -65,7 +65,7 @@ static enum radeon_value_id winsys_id_from_type(unsigned type)
        case R600_QUERY_MAPPED_VRAM: return RADEON_MAPPED_VRAM;
        case R600_QUERY_MAPPED_GTT: return RADEON_MAPPED_GTT;
        case R600_QUERY_BUFFER_WAIT_TIME: return RADEON_BUFFER_WAIT_TIME_NS;
-       case R600_QUERY_NUM_CTX_FLUSHES: return RADEON_NUM_CS_FLUSHES;
+       case R600_QUERY_NUM_GFX_IBS: return RADEON_NUM_GFX_IBS;
        case R600_QUERY_NUM_BYTES_MOVED: return RADEON_NUM_BYTES_MOVED;
        case R600_QUERY_NUM_EVICTIONS: return RADEON_NUM_EVICTIONS;
        case R600_QUERY_VRAM_USAGE: return RADEON_VRAM_USAGE;
@@ -135,7 +135,7 @@ static bool r600_query_sw_begin(struct r600_common_context *rctx,
                query->begin_result = 0;
                break;
        case R600_QUERY_BUFFER_WAIT_TIME:
-       case R600_QUERY_NUM_CTX_FLUSHES:
+       case R600_QUERY_NUM_GFX_IBS:
        case R600_QUERY_NUM_BYTES_MOVED:
        case R600_QUERY_NUM_EVICTIONS: {
                enum radeon_value_id ws_id = winsys_id_from_type(query->b.type);
@@ -225,7 +225,7 @@ static bool r600_query_sw_end(struct r600_common_context *rctx,
        case R600_QUERY_CURRENT_GPU_SCLK:
        case R600_QUERY_CURRENT_GPU_MCLK:
        case R600_QUERY_BUFFER_WAIT_TIME:
-       case R600_QUERY_NUM_CTX_FLUSHES:
+       case R600_QUERY_NUM_GFX_IBS:
        case R600_QUERY_NUM_BYTES_MOVED:
        case R600_QUERY_NUM_EVICTIONS: {
                enum radeon_value_id ws_id = winsys_id_from_type(query->b.type);
@@ -1691,7 +1691,7 @@ static struct pipe_driver_query_info r600_driver_query_list[] = {
        X("mapped-VRAM",                MAPPED_VRAM,            BYTES, AVERAGE),
        X("mapped-GTT",                 MAPPED_GTT,             BYTES, AVERAGE),
        X("buffer-wait-time",           BUFFER_WAIT_TIME,       MICROSECONDS, CUMULATIVE),
-       X("num-ctx-flushes",            NUM_CTX_FLUSHES,        UINT64, AVERAGE),
+       X("num-GFX-IBs",                NUM_GFX_IBS,            UINT64, AVERAGE),
        X("num-bytes-moved",            NUM_BYTES_MOVED,        BYTES, CUMULATIVE),
        X("num-evictions",              NUM_EVICTIONS,          UINT64, CUMULATIVE),
        X("VRAM-usage",                 VRAM_USAGE,             BYTES, AVERAGE),
index af434faf50bde639105887b91f754d116030b3c1..fffd9feea62aecdec8fdb0c1498a92a21beda260 100644 (file)
@@ -60,7 +60,7 @@ enum {
        R600_QUERY_MAPPED_VRAM,
        R600_QUERY_MAPPED_GTT,
        R600_QUERY_BUFFER_WAIT_TIME,
-       R600_QUERY_NUM_CTX_FLUSHES,
+       R600_QUERY_NUM_GFX_IBS,
        R600_QUERY_NUM_BYTES_MOVED,
        R600_QUERY_NUM_EVICTIONS,
        R600_QUERY_VRAM_USAGE,
index 3027c4a8b535a0bdd423a028f043932b19d27029..6c886cf33887735bd3ef325a017b06fcea0cbb28 100644 (file)
@@ -82,7 +82,7 @@ enum radeon_value_id {
     RADEON_MAPPED_GTT,
     RADEON_BUFFER_WAIT_TIME_NS,
     RADEON_TIMESTAMP,
-    RADEON_NUM_CS_FLUSHES,
+    RADEON_NUM_GFX_IBS,
     RADEON_NUM_BYTES_MOVED,
     RADEON_NUM_EVICTIONS,
     RADEON_VRAM_USAGE,
index 2b86827ff5343fff2588b3fc66de8436dd1fb642..adb46c5b4054aff9a09b61e022e849eb3080b677 100644 (file)
@@ -1204,7 +1204,7 @@ static int amdgpu_cs_flush(struct radeon_winsys_cs *rcs,
    cs->main.base.used_gart = 0;
    cs->main.base.used_vram = 0;
 
-   ws->num_cs_flushes++;
+   ws->num_gfx_IBs++;
    return error_code;
 }
 
index 0f7d16183e24fa60b6f785fa03106ddf0ab37d0e..2ccc8e549f260df0a7766fc9aad98fd0936a3207 100644 (file)
@@ -427,8 +427,8 @@ static uint64_t amdgpu_query_value(struct radeon_winsys *rws,
    case RADEON_TIMESTAMP:
       amdgpu_query_info(ws->dev, AMDGPU_INFO_TIMESTAMP, 8, &retval);
       return retval;
-   case RADEON_NUM_CS_FLUSHES:
-      return ws->num_cs_flushes;
+   case RADEON_NUM_GFX_IBS:
+      return ws->num_gfx_IBs;
    case RADEON_NUM_BYTES_MOVED:
       amdgpu_query_info(ws->dev, AMDGPU_INFO_NUM_BYTES_MOVED, 8, &retval);
       return retval;
index 69c6638075282211eef718b172c3d4a7261857d0..6746079b9c1749787c5f04c491f8664712f07bab 100644 (file)
@@ -61,7 +61,7 @@ struct amdgpu_winsys {
    uint64_t mapped_vram;
    uint64_t mapped_gtt;
    uint64_t buffer_wait_time; /* time spent in buffer_wait in ns */
-   uint64_t num_cs_flushes;
+   uint64_t num_gfx_IBs;
 
    struct radeon_info info;
 
index 79c09e22048df59f8be1611e55de03af49621013..ab1ca06c5015e89b677bb29ec2ec3553ae92abb8 100644 (file)
@@ -691,7 +691,7 @@ static int radeon_drm_cs_flush(struct radeon_winsys_cs *rcs,
     cs->base.used_vram = 0;
     cs->base.used_gart = 0;
 
-    cs->ws->num_cs_flushes++;
+    cs->ws->num_gfx_IBs++;
     return 0;
 }
 
index 70f061ccc36441b573c1895aa988e1b341c78482..1b2f9b18aca202e72da3eb446c94b9f1e196e3e7 100644 (file)
@@ -623,8 +623,8 @@ static uint64_t radeon_query_value(struct radeon_winsys *rws,
         radeon_get_drm_value(ws->fd, RADEON_INFO_TIMESTAMP, "timestamp",
                              (uint32_t*)&retval);
         return retval;
-    case RADEON_NUM_CS_FLUSHES:
-        return ws->num_cs_flushes;
+    case RADEON_NUM_GFX_IBS:
+        return ws->num_gfx_IBs;
     case RADEON_NUM_BYTES_MOVED:
         radeon_get_drm_value(ws->fd, RADEON_INFO_NUM_BYTES_MOVED,
                              "num-bytes-moved", (uint32_t*)&retval);
index 934cd584f8658f3d39e8222fdc14470ce7361b97..137a9f437e14ef20f10e5ebc37464d65820fe712 100644 (file)
@@ -79,7 +79,7 @@ struct radeon_drm_winsys {
     uint64_t mapped_vram;
     uint64_t mapped_gtt;
     uint64_t buffer_wait_time; /* time spent in buffer_wait in ns */
-    uint64_t num_cs_flushes;
+    uint64_t num_gfx_IBs;
     uint32_t next_bo_hash;
 
     enum radeon_generation gen;