summaryrefslogtreecommitdiff
path: root/freedreno/kgsl
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2014-06-18 09:45:23 -0400
committerRob Clark <robclark@freedesktop.org>2014-06-18 10:42:07 -0400
commit56d170bc06c3ac69deb697f057c213f7c46d9a68 (patch)
tree1a5b756573afcfdbcfc41799f7656c0e1c0e0e68 /freedreno/kgsl
parent09db8019da88644cd54dc9d93e8398d8b1f7d923 (diff)
freedreno: add chip-id property
Userspace needs to know the patch-revision in addition to just the gpu-id (ie. 320, 305, etc). Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno/kgsl')
-rw-r--r--freedreno/kgsl/kgsl_pipe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/freedreno/kgsl/kgsl_pipe.c b/freedreno/kgsl/kgsl_pipe.c
index f7ff7fe0..88d9505b 100644
--- a/freedreno/kgsl/kgsl_pipe.c
+++ b/freedreno/kgsl/kgsl_pipe.c
@@ -43,6 +43,9 @@ static int kgsl_pipe_get_param(struct fd_pipe *pipe,
case FD_GMEM_SIZE:
*value = kgsl_pipe->devinfo.gmem_sizebytes;
return 0;
+ case FD_CHIP_ID:
+ *value = kgsl_pipe->devinfo.chip_id;
+ return 0;
default:
ERROR_MSG("invalid param id: %d", param);
return -1;