diff options
author | Ken Wang <Qingqing.Wang@amd.com> | 2015-06-03 17:21:27 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-05 13:47:50 -0400 |
commit | cdd1edcae0078a8cfa4b1083765aa660bd593272 (patch) | |
tree | fead9c32a2aee749625d86a848db73ecfa5497f6 /amdgpu | |
parent | 4bf29413a3e4da9fdabfd8d145702bc6922b0d72 (diff) | |
download | libdrm-cdd1edcae0078a8cfa4b1083765aa660bd593272.tar.gz libdrm-cdd1edcae0078a8cfa4b1083765aa660bd593272.tar.bz2 libdrm-cdd1edcae0078a8cfa4b1083765aa660bd593272.zip |
amdgpu: add ce_ram_size for interface query
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'amdgpu')
-rw-r--r-- | amdgpu/amdgpu.h | 2 | ||||
-rw-r--r-- | amdgpu/amdgpu_gpu_info.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h index 94fc647d..302f1dc4 100644 --- a/amdgpu/amdgpu.h +++ b/amdgpu/amdgpu.h @@ -520,6 +520,8 @@ struct amdgpu_gpu_info { uint32_t vram_type; /* video memory bit width*/ uint32_t vram_bit_width; + /** constant engine ram size*/ + uint32_t ce_ram_size; }; diff --git a/amdgpu/amdgpu_gpu_info.c b/amdgpu/amdgpu_gpu_info.c index 18cff4cb..793062b1 100644 --- a/amdgpu/amdgpu_gpu_info.c +++ b/amdgpu/amdgpu_gpu_info.c @@ -160,6 +160,7 @@ int amdgpu_query_gpu_info_init(amdgpu_device_handle dev) dev->dev_info.num_shader_arrays_per_engine; dev->info.vram_type = dev->dev_info.vram_type; dev->info.vram_bit_width = dev->dev_info.vram_bit_width; + dev->info.ce_ram_size = dev->dev_info.ce_ram_size; for (i = 0; i < (int)dev->info.num_shader_engines; i++) { unsigned instance = (i << AMDGPU_INFO_MMR_SE_INDEX_SHIFT) | |