summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorTom Stellard <tstellar@gmail.com>2012-03-20 17:17:55 -0400
committerDave Airlie <airlied@redhat.com>2012-03-21 06:55:49 +0000
commit609c1e15a44c25f722fb93e18668da30179a172f (patch)
tree4fb8f7faf5d5bb5e7df05b4fd04d4028ba702152 /include/drm
parentda0df92b57311aa1b26a2a90599ed16e1e968b90 (diff)
downloadlinux-609c1e15a44c25f722fb93e18668da30179a172f.tar.bz2
drm/radeon/kms: add info query for max pipes
The maximum number of pipes is needed by the user space compute driver to calculate the number of wavefronts per thread group. Signed-off-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/radeon_drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/radeon_drm.h b/include/drm/radeon_drm.h
index cb2f0c362a13..6cde931d8e68 100644
--- a/include/drm/radeon_drm.h
+++ b/include/drm/radeon_drm.h
@@ -962,6 +962,8 @@ struct drm_radeon_cs {
#define RADEON_INFO_VA_START 0x0e
/* maximum size of ib using the virtual memory cs */
#define RADEON_INFO_IB_VM_MAX_SIZE 0x0f
+/* max pipes - needed for compute shaders */
+#define RADEON_INFO_MAX_PIPES 0x10
struct drm_radeon_info {
uint32_t request;