History

drm/radeon: add query for number of active CUs

Query to find out how many compute units on a GPU. Useful for OpenCL usermode drivers.

Alex Deucher committed 12 years ago

Commit 65fcf661 parent 478b6e710 files · +76 −4Browse files

Showing the changes to include/uapi (1 of 10 files). Show all

Unified · Split

include/uapi/drm/radeon_drm.h+1−1
@@ -1007,7 +1007,7 @@ struct drm_radeon_cs { · 1006 unmodified lines
10071007 #define RADEON_INFO_NUM_BYTES_MOVED 0x1d
10081008 #define RADEON_INFO_VRAM_USAGE 0x1e
10091009 #define RADEON_INFO_GTT_USAGE 0x1f
1010−
1010+#define RADEON_INFO_ACTIVE_CU_COUNT 0x20
10111011
10121012 struct drm_radeon_info {
10131013 uint32_t request;