summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-12-04 12:55:37 -0500
committerAlex Deucher <alexander.deucher@amd.com>2012-12-07 19:48:22 -0500
commit2e1a7674f65eb2c9118ab59d9c8aa9c731da6b85 (patch)
tree6a4a881d05fe1cdb5a4d2781f7c91e8a8111c3dd /include/uapi
parenta02dc74b317d78298cb0587b9b1f6f741fd5c139 (diff)
downloadblackbird-op-linux-2e1a7674f65eb2c9118ab59d9c8aa9c731da6b85.tar.gz
blackbird-op-linux-2e1a7674f65eb2c9118ab59d9c8aa9c731da6b85.zip
drm/radeon: add new INFO ioctl requests
Add requests to get the number of shader engines (SE) and the number of SH per SE. These are needed for geometry and tesselation shaders in the 3D driver as well as setting up PA_SC_RASTER_CONFIG on SI asics. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/radeon_drm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h
index 0c8a62c543f7..5645a878faec 100644
--- a/include/uapi/drm/radeon_drm.h
+++ b/include/uapi/drm/radeon_drm.h
@@ -967,6 +967,10 @@ struct drm_radeon_cs {
#define RADEON_INFO_MAX_PIPES 0x10
/* timestamp for GL_ARB_timer_query (OpenGL), returns the current GPU clock */
#define RADEON_INFO_TIMESTAMP 0x11
+/* max shader engines (SE) - needed for geometry shaders, etc. */
+#define RADEON_INFO_MAX_SE 0x12
+/* max SH per SE */
+#define RADEON_INFO_MAX_SH_PER_SE 0x13
struct drm_radeon_info {
uint32_t request;
OpenPOWER on IntegriCloud